Skip to content
Prev 306756 / 398506 Next

Problem with mutli-dimensional array

Hello,
See if this is it.


Nx <- rep(0,length(x))
Ny <- rep(0,length(y))
n <- (x+1)*(y+1)
results <- array(0, dim=c(2,2,64,7))
# l <- 1 # <--------------------------- This changed place
for(i in 1:length(x)){
     Nx[i] <- length(1:(x[i]+1))
     Ny[i] <- length(1:(y[i]+1))
     l <- 1 # <----------------------- To here
     for(j in 1:(Nx[i])){
         for(k in 1:(Ny[i])){


Hope this helps,

Rui Barradas
Em 02-10-2012 15:20, Loukia Spineli escreveu: