Dear all, I have troubles figuring out how to convert missing values from Stata (treated as -1 and -2) into NAs in R. To read in the dta file I use: data <- read.dta("data.dta")
Is there an option to tell R to convert the -1 and -2 into NAs ? Your help is appreciated. Thanks a lot in advance. Rike [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.