Re: [R] request: An array declarion problem

2008-06-04 Thread jim holtman
When I run your code, I get a different error: > j=10; ss=150; r=array(0 , c( j , ss )); rr=array(0 , c( j , ss )); r1=array(0 , c( j-1 , ss )); r2=array(0 , c( j-1 , ss )); > r3=array(0 , c( 2 , ss )) > > for(i in 1:j-1){ +r1[ i , ] <- r[ j+1, ]-r[ j, ]; r2[ i , ] <- rr[ j

[R] request: An array declarion problem

2008-06-03 Thread Muhammad Azam
Dear R users I tried a lot to solve the following problem but could not. I have two arrays having same order i.e 1 by 150. j=10; ss=150; r=array(0 , c( j , ss )); rr=array(0 , c( j , ss )); r1=array(0 , c( j-1 , ss )); r2=array(0 , c( j-1 , ss )); r3=array(0 , c( 2 , ss )) for(i in 1:j-1){