[R] Why is.integer() doesn't work with single values?
garbade at psy.uni-muenchen.de
Wed May 29 15:41:03 CEST 2002
I don't understand the behavior of is.integer():
> x <- integer()
> x <- 10
> x <- 1:10
Why is.interger() returns FALSE if x has only one element? And how can
someone check if x is an integer but contains only one value? (R 1.5.0
on Linux i386)
r-help 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-help-request at stat.math.ethz.ch
More information about the R-help