[Rd] Re: [R] Several R vs S-Plus issues

Duncan Murdoch murdoch@stats.uwo.ca
Thu, 04 Oct 2001 13:25:40 -0400


On Thu, 4 Oct 2001 18:14:48 +0200, Kurt Hornik wrote in message
<15292.35576.513722.492732@mithrandir.hornik.net>:

>Agreed.  As Peter said, subscripting by NA should give NA but R cannot
>distinguish a string NA from the string NA. 

But it does make some sort of distinction, as my example contrasting
"NA" with paste(NA) shows.  In case you missed it:

 > is.na("NA")
 [1] TRUE
 > paste(NA)
 [1] "NA"
 > is.na(paste(NA))
 [1] FALSE

Duncan Murdoch


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._