[R] bad STATA dataset import, how to change value labels
dwinsemius at comcast.net
Sun Dec 7 03:14:34 CET 2014
On Dec 6, 2014, at 3:54 PM, Edoardo Prestianni wrote:
> I have imported a couple of .dta datasets, but a variable, instead of being
> labeled as factor (w/ values ranging from a to b) is labeled as integer.
> How can I fix this? I am sorry if it is a rookie question but I don't find
> the command googling.
The word "labeled" is not an R term unless on is talking about the labels of factor variables in which case there is no problem. Factors have mode integer.
Post the results of dput(head( dfrm[ , "varname"]))
> Thanks everyone for their help,
> Edoardo Prestianni
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
Alameda, CA, USA
More information about the R-help