[R] lists -- "vector" etc. [ is.vector(..., "double") ]
Martin Maechler
maechler at stat.math.ethz.ch
Mon Jan 4 11:38:36 CET 1999
>>>>> "Jim" == Jim Lindsey <jlindsey at alpha.luc.ac.be> writes:
MM> # "numeric"
MM>
MM> typeof(c(23,42)) or storage.mode(c(23,42)) both give "double"
MM>
MM> [which is compatible to S 3 (S+ 3.x, 4.x) but not S 4 (S+ 5.0++)
MM> which now uses integer for integer literals]
MM>
Jim> is.vector(c(23,42),mode="numeric")
MM> FALSE
MM>
MM> This *is* a bug, [and not the only with is.vector/as.vector, see
MM> above].
Jim> That was the point of my message.
MM> However,
MM> > is.vector(c(23,42),mode="numeric")
MM> TRUE
Jim> I don't follow this. That line is identical to mine.
oops, this was my cut-and-paste typo.
I meant
> is.vector(c(23,42),mode="double")
^^^^^^ (not "numeric")
TRUE
-- Martin
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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