Skip to content
Prev 6223 / 63421 Next

Several R vs S-Plus issues

I think we do not want to change this.

Splus has
[1] NA  2
[1] T F
[1] T F

etc, so I think the logic would be that we get NA whenever we subscript
by NA.  The current Splus behavior for character vectors is different,
and I do not see why it should.  Note that in R,

R> is.na(LETTERS[c(NA,2)])
[1]  TRUE FALSE

so we really have NA but it is printed as "NA" (and this might be
another case where <NA> would be better).
Doug Bates had raised this issue some time ago.  In the interest of
keeping the S language core as small as possible, I'd rather recommend
against adding these.  We can basically do that same using apply(), and
if the point is to have fast C code I think we should rather
special-case apply accordingly.
This is a function from the chron package, and it is also available in
the R version of chron.  Again, I am not sure whether this should be in
the S language core: we have strsplit.

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