Displaying 1 result from an estimated 1 matches for "dr2000".
2005 Sep 20
1
Problem with read.spss() and as.data.frame(), or: alternative to subset()?
Trying to select a subset of cases (rows of data) I encountered several
problems:
Firstly, because I did not read the help to read.spss() thoroughly
enough, I treated the data read as a data frame. For example,
dr2000 <- read.spss('myfile.sav')
d <- subset(dr2000,RBINZ99 > 0)
and thus received an error message (Object "RBINZ99" not found), because
dr2000 is not a data.frame but a list (shown by class(dr2000)).
d <- subset(dr2000,dr2000$RBINZ99)
didn' help either, because now...