From murdoch@stats.uwo.ca  Thu Oct  4 18:25:40 2001
From: murdoch@stats.uwo.ca (Duncan Murdoch)
Date: Thu, 04 Oct 2001 13:25:40 -0400
Subject: [Rd] Re: [R] Several R vs S-Plus issues
In-Reply-To: <15292.35576.513722.492732@mithrandir.hornik.net>
References: <15292.6722.281945.237767@mithrandir.hornik.net> <Pine.A41.4.33.0110040846520.100374-100000@homer38.u.washington.edu> <15292.35576.513722.492732@mithrandir.hornik.net>
Message-ID: <el6prt4klee803l7vd32d922apud7rn3si@4ax.com>

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


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