[Rd] is.finite confusion

Vladimir Dergachev vdergachev at rcgardis.com
Wed May 23 19:18:37 CEST 2007


    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



More information about the R-devel mailing list