Skip to content
Prev 64139 / 398500 Next

two dimensional array of object elements

Hi list,

I want to create a two (possibly three) dimensional array of objects. These 
objects are classes in object oriented style. I failed by using
a<-array(NA,c(m,n))
for (i in 1:m){
  for (j in 1:n){
    a[i,j]<-My.Obj
  }
}

The elements are still NA. Any suggestions?

Thanks