Dear all,
it is likely a stupid question but I cannot solve it.
I want to have a matrix of 100 elements.
Each element must be a vector of 500 elements.
If I do:
imp<-array(dim=100)
imp[1]<-vector(length=500)
it does not work. Warning message: "number of items to replace is not a
multiple
For the case someone is interested in it, here it is the solution
somebody suggested me: to use a list.
imp <- vector("list", 100)
imp[[1]] <- im[1:500,]
names(imp[[1]]) => the list of labels of imp[1:500,]
Thanks!
Federico
Federico Abascal wrote:
> Dear all,
>
> it is likely a stupid question