[R] indexing into a list

Anna H. Pryor anna at ptolemy.arc.nasa.gov
Wed Jun 11 22:43:00 CEST 2003


I am trying to make an array of lists.  I don't think that I am doing it right 
however because I cannot access the individual elements of the lists once I 
have created the array of lists.  Can someone help?


for(i in 1:3){
     y[[i]] =  list(name[((i-1)*index+1):(i*index)])
   }

Anna




More information about the R-help mailing list