2 Introduction
The files are organized in STATA.
STATA system files can be read using the read.dta() function from the foreign package.
Use install.packages(foreign) if needed; it’s probably already in your system library.
The file is read twice, for laziness and convenience. Once with the labels as they appear in STATA, and once with the numeric codes.
library(foreign)
<- read.dta("region_all_03c_stata12.dta")
fashlogFac <- read.dta("region_all_03c_stata12.dta",convert.factors=F) fashlogNum