search for: variablename2

Displaying 2 results from an estimated 2 matches for "variablename2".

Did you mean: variablename
2002 Dec 05
1
(no subject)
hi, suppose you have a for-loop like this: for(i in1:x) {} ... now you want to generate a variable in every cycle (since you do not know the size of x in beforehand you have to do this dynamically). the variable should e.g. look like this: variableName1<-c() (if x==1) variableName2<-c() (ifx==2) variableName3<-c() (if x==3) .. .. i tried this(which obviously didn't work): paste("variableName",x,sep="")<-c(2,3,4) so i need something similiar to this (but working!)! thanks for help, greetinx jan
2002 Dec 05
0
(no subject)
...r-loop like this: > > for(i in1:x) {} ... > > now you want to generate a variable in every > cycle (since you do not know the size of x in > beforehand you have to do this dynamically). > > the variable should e.g. look like this: > variableName1<-c() (if x==1) > variableName2<-c() (ifx==2) > variableName3<-c() (if x==3) > .. > .. > i tried this(which obviously didn't work): > > paste("variableName",x,sep="")<-c(2,3,4) > > so i need > something similiar to this (but working!)! - This is FAQ 7.23 (see the FAQ&...