Re: [Rd] Error: NAs are not allowed in subscripted assignments: change from R.1.9

2005-04-03 Thread Peter Dalgaard
"Vadim Ogranovich" <[EMAIL PROTECTED]> writes: > Hi, > > There seems to be a change in 2.0.1 in the workings of subscript > assignments with missing values. > > > # This is R.2.0.1 > > # assignment w/ missing index doesn't work when right-hand-side is a > matrix. It did work in 1.9.1 > > x = m

[Rd] Error: NAs are not allowed in subscripted assignments: change from R.1.9

2005-04-03 Thread Vadim Ogranovich
Hi, There seems to be a change in 2.0.1 in the workings of subscript assignments with missing values. # This is R.2.0.1 # assignment w/ missing index doesn't work when right-hand-side is a matrix. It did work in 1.9.1 > x = matrix(1, 2, 2); x[c(1,NA),] = x Error: NAs are not allowed in subscrip