Displaying 1 result from an estimated 1 matches for "eldatfac".
2006 Feb 19
2
Converting factors back to numbers. Trouble with SPSS import data
...k.
My colleague sent an SPSS data set. I must replicate some results she
calculated in SPSS and one problem is that the numbers used in SPSS
for variable values are not easily recovered in R.
I'm comparing 2 imported datasets, "eldat" (read.spss with No
convert-to-factors) and
"eldatfac" (read.spss with convert-to-factors)
If I bring in the data without conversion to factors:
library(foreign)
eldat <- read.spss("18CitySCBSsorted.sav", use.value.labels=F,
to.data.frame=T)
I can see the variable HAPPY is coded 0, 1, 2, 3. Those are the
n...