[Rd] Characters subsetted with NA (was: Several R vs S-Plus issues)

Kurt Hornik Kurt.Hornik@ci.tuwien.ac.at
Thu, 4 Oct 2001 18:16:18 +0200


>>>>> David Brahm writes:

> Peter Dalgaard <p.dalgaard@biostat.ku.dk> wrote:
>> Basically, we should have a *real* NA for string variables, distinct from
>> the character string "NA" and propagating like any other NA's.

> I could go for that.  How would it appear when cat()ed or print()ed?

I think <NA> to distinguish from "NA".

R 1.4.0 already has

    o   Printing factors with both level "NA" and missing values
        uses `<NA>' for the missing values to distinguish them.

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