search for: vocallgrp

Displaying 1 result from an estimated 1 matches for "vocallgrp".

Did you mean: localgrp
2009 Dec 10
1
Need help creating multiple datasets using loops or vectorization
...roup==2) vocallGp3<-subset(vocallsub, Group==3) vocallGp4<-subset(vocallsub, Group==4) vocallGp5<-subset(vocallsub, Group==5) When I create the loop I get the following error: vocallsub<-vocall[c("PatientID","Group")] > > for(i in 1:length(vocallsub$Group)){vocallGrp[i]<-subset(vocallsub, Group==(i))} Error in vocallGrp[i] <- subset(vocallsub, Group == (i)) : object 'vocallGrp' not found This is my first time attempting to create a loop and am not sure what I am missing and I need assistance with the proper syntax. Chris Anderson Data Analyst...