[R] is.numeric()

Thomas Lumley tlumley at u.washington.edu
Thu Aug 22 17:33:09 CEST 2002


On Thu, 22 Aug 2002, Martin Maechler wrote:
>
> However, you really found a bug in lapply() {which is called by
> sapply()} :
>

The bug is in as.list()
> vec
[1]  TRUE FALSE    NA    NA
> as.list(vec)
[[1]]
[1] 1

[[2]]
[1] 0

[[3]]
[1] NA

[[4]]
[1] NA

	-thomas


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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 mailing list