Read Stata 13 file in R
58,350
I had the same problem. Tried read.dta13
, read.dta
but nothing worked. Then tried the easiest and least expected: MS Excel! It opened marvelously. I saved it as a .csv
and used in R!!! Hope this helps!!!!
Author by
kolonel
Updated on July 09, 2022Comments
-
kolonel almost 2 years
Is there a way to read a Stata version 13 dataset file in R?
I have tried to do the following:
> library(foreign) > data = read.dta("TEAdataSTATA.dta")
However, I got an error:
Error in read.dta("TEAdataSTATA.dta") :
not a Stata version 5-12 .dta fileCould someone point out if there is a way to fix this?