[R] Create objects

felber felber at slf.ch
Thu Oct 11 15:25:48 CEST 2001

hello cracks,

we have 365 objects (d.data1-d.data365) containing each 1200 rows with 7 
variables. now we want 1200 objects with the row number i (1:1200) of each 

we tried it to do this way: for (k in 1:1200) for (j in 1:365) for (i in 
1:7) get(paste("test",k,sep=""))[j,i] <- get(paste("d.data",j,sep=""))[k,i]
-> following error appeared:  Error: Target of assignment expands to 
non-language object

Does anyone know what can be done?

thanks in advance,


r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list