From vograno at evafunds.com  Sun Apr  3 23:39:53 2005
From: vograno at evafunds.com (Vadim Ogranovich)
Date: Sun Apr  3 23:40:03 2005
Subject: [Rd] Error: NAs are not allowed in subscripted assignments: change
	from R.1.9
Message-ID: <C698D707214E6F4AB39AB7096C3DE5A58FFAC1@phost015.EVAFUNDS.intermedia.net>

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 subscripted assignments
# it does work for a vector
> x = matrix(1, 2, 2); x[c(1,NA),] = 1

Is this change intentional? There seems to be nothing about it in the
release notes.

Thanks,
Vadim


> version
         _                       
platform x86_64-unknown-linux-gnu
arch     x86_64                  
os       linux-gnu               
system   x86_64, linux-gnu       
status                           
major    2                       
minor    0.1                     
year     2004                    
month    11                      
day      15                      
language R


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