Displaying 1 result from an estimated 1 matches for "commonnnames".
Did you mean:
commonnames
2009 Nov 13
1
spss imports--trouble with to.data.frame
...)
dn2 <- as.data.frame(dn2)
dn2$whichSurvey <- 2
dn3 <- read.spss("ESS2e03_1.por", use.value.labels = F)
dn3 <- as.data.frame(dn3)
dn3$whichSurvey <- 3
## Might be smart to compare
# dn2$HAPPY[1:50]
# d2$HAPPY[1:50]
namesdn2 <- names(dn2)
namesdn3 <- names(dn3)
commonNNames <- intersect( namesdn3, namesdn2 )
combodn23 <- rbind(dn2[ , commonNNames], dn3[, commonNNames])
save(combodn23, file="combodn23.Rda")
table( combod23$HAPPY, combodn23$HAPPY)
## In summary, whenever I want to use a variable from
## the combined data frame, I would probably compa...