Displaying 1 result from an estimated 1 matches for "reverb1".
Did you mean:
reverb
2005 Aug 26
3
parts of data frames: subset vs. [-c()]
...22288
I would like to extract all cases where SYNTAX=="Ditrans" from ReVerb, store that in a file, and then generate ReVerb again without these cases and factor levels. My problem is probably obvious from the following lines of code:
?? ditrans<-which(SYNTAX=="Ditrans")
?? ReVerb1<-ReVerb[-c(ditrans),]; dim(ReVerb1)
[1] 91532 16
??
?? # ok, so the 92713-91532=1181 cases where SYNTAX=="Ditrans" have been removed, but ...
??
?? ReVerb1<-subset(ReVerb, SYNTAX!="Ditrans"); dim(ReVerb1)
[1] 91528 16
??
?? # ... so why don't I get 91532 again...