Tutorial 1
Tutorial 1
Introduction to R
What is R?
• R is a powerful language and environment for statistical computing
and graphics. R is much used in as an educational language and
research tool.
• Free
• A lot of help online;
• Can be understood (hopefully) by people without any programming
experience
• Open-source (Thousands of packages online, and still growing)
• We prefer to use R in combination with the RStudio interface, which
has an organized layout and several extra options.
Install R and Rstudio on your PC
1. Install R
2. Install Rstudio
write.table()
TXT, CSV read.table(file=“”) read.csv(file=“”)
write.csv()
library(foreign)
SAV, DTA read.spss(file=“”, to.data.frame = T)
read.dta(file=“”)