Skip to content
Back to formatted view

Raw Message

Message-ID: <200205110113.DAA29237@pubhealth.ku.dk>
Date: 2002-05-11T01:13:13Z
From: Paul Gilbert
Subject: vector(NA, 3) (PR#1541)

I don't seem to be able to initialize a vector of NAs. I hope this is a
bug and not a new feature (I realize I have not paid much attention to a
lot of recent discussion about NA):

platform sparc-sun-solaris2.6
arch     sparc               
os       solaris2.6          
system   sparc, solaris2.6   
status                       
major    1                   
minor    5.0                 
year     2002                
month    04                  
day      29                  
language R                   
> 
> vector(NA, 3)
Error in vector(NA, 3) : vector: cannot make a vector of mode "NA".
> matrix(NA,2,2)
     [,1] [,2]
[1,]   NA   NA
[2,]   NA   NA

Paul Gilbert

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._