r - Read.dta not working on Mac OS X -


A project that usually works on my Windows 7 office machine now gives errors to my Mac OS X laptop , It is trying to run R Studio fails this part

  Library (foreign) basis & lt; Error in the read.dta ("myfile.dta") factor (rval [[v]], level = tt [[ll] [], label = name (tt [[ll [v]]])): Invalid 'label'; Length should be 1 to 3 or  

R and Rstudio are on the latest version, I already have update.packages Has run () . As I am starting on R itself, I fully know what to try to do next.

Is it somehow related to OS X encoding? In the Stata file the German "umlaut" (that is, non-ISO characters) is in

Instead of the package Use memisc . It is believed to be more flexible than the docks (found):

Importer mechanism, comparing the SPS and read.dta to read "foreign" as the most parsing of the file commander Is more flexible and extensible in Is done in R.

Then return the problem. First, load the following:

  Library (Latin) library (mass) library (men's)  

and then use the call:

  as.data.frame (as.data.set (Stata.file ("filename.dta"))  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -