Hi,

I have two 3 D arrays. Both are of this form

array_1<- array[n,n,k]
array_2<-array[m,m,k]

Lets say n=83 and m=80
Since n>m. I would like to add rows and columns to array_2 to make them
equal. I want to keep the size of the third dimension fixed i.e.. k.

i.e.
if (nrow(array_1)>nrow(array_2))
{
array_2[m:n,m:n,]<- 10^6

}

But this doesn't work. I tried abind and rbind but it didn't work either.
Any help/tips will be appreciated!

Thanks,
Usman

	[[alternative HTML version deleted]]

