[Rd] is.finite confusion

From: Vladimir Dergachev <vdergachev_at_rcgardis.com>
Date: Wed, 23 May 2007 13:18:37 -0400

    I have recently made a silly screwup by applying is.finite() to a character vector:

> is.finite(c("a", "b"))

[1] FALSE FALSE This does work with factors of course (as they are integer underneath)

I wonder if a fix could be put in so that it either reports an error when applied to a character vector - or, perhaps better, act as is.na()

                      thank you

                               Vladimir Dergachev
PS test on R 2.5.0, 2.3.1

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed 23 May 2007 - 17:24:23 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 23 May 2007 - 18:33:45 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.