a binary read error occurred when using read.dta13 on a .dta file

367 views Asked by At

I am trying to load in a STATA data file using read.dta13 from the readstata13 library. When I use the function read.dta13 on this .dta file I get the following error over and over:

char: a binary read error occurred.

What does this mean?

Here is the code:

install.packages("readstata13") install.packages("foreign")

library(readstata13) library(foreign)

dat <- read.dta13("cfps2018person_201911.dta")

0

There are 0 answers