I have a function which is executed 200 times like this
for (l in 1:200) {
fun.ction(paramter1=g, paramter2=h)$element->u[z,,]
}
u
is an array:
u<-array(NA, dim=c(2000,150,7))
of which I know it should have the right format. The element of func.tion
is also an array which has the same dimensions. Hence, is there some way to fill the array u
in each of the 200 runs with the array resulting from fun.ction()$element
? I tried to use indexing via a list (u[[z]]
). It saves the array but as a list so that I can't access the elements afterwards which I would need to. I appreciate any help.