Displaying 1 result from an estimated 1 matches for "region_dim".
2007 Jul 30
1
array loop
Dear all,
here are two arrays: region(26,31,8), nation(8)
I tried to get a new array, say, giGi(26,31,8)
giGi <- array(0,dim = c(region_dim))
for (i in (1:region_dim[3]))
{
giGi[,,i] = region[,,i]-nation[,i]
}
As the above is part of function, but results shows only giGi[,,1] has the
right answers, all the others (giGi[,,2],..giGi[..8]) are zeros. I have
checked array of region and nation, they are not zeros at all....
when I do ma...