You lost me with the TRN and TRN_CLUSTER bits, but are you trying to
make a list of lists?
> Data_ <- list()
> SN <- 1:12
> for(sn in SN) {
+ Data_[[sn]] <- list()
+ for(i in 1:10) {
+ Data.X <- rnorm(5, 0, 10)
+ Data_[[sn]][[i]] <- Data.X
+ }}
>
> Data_[[3]][[2]]
[1] -5.687070 -2.365589 12.378359
So im here now b/c im incredibly frustrated. Please consider the following:
#Try 1
Data_<-list()
Sn<-1:12
for(sn in Sn){
for(i in 1:10){
Data.X <- rnorm(100,0,10)
Data_[[paste(sn,i,sep="-")]]<-Data.X
}
}
##Try 2
Data_<-list()
Sn<-1:12
for(sn
2 matches
Mail list logo