[R] problem with subsetting in compating one column with a vector

2009-02-03 Thread venkata kirankumar
Hi all, I got one problem with"subset()"function hear i executed: findings1<-subset(findings,SUBJECTSID==SUBJECTS1$SUBJECTSID,select=c(SUBJECTSID,ORGNUMRES)) hear "SUBJECTS1$SUBJECTSID" vector contains nearly "65" values the problem is after comparing and subsetting its not givi

Re: [R] problem with subsetting in compating one column with a vector

2009-02-03 Thread David Freedman
Do you really want to use '==' ? How about '%in%', as in findings1<-subset(findings,SUBJECTSID %in% ==SUBJECTS1$SUBJECTSID, select=c(SUBJECTSID,ORGNUMRES)) David Freedman dvkirankumar wrote: > > Hi all, > I got one problem with"subset()"function > > hear i executed: > > findings1<