Skip to content
Back to formatted view

Raw Message

Message-ID: <199901041038.LAA04969@sophie.ethz.ch>
Date: 1999-01-04T10:38:36Z
From: Martin Maechler
Subject: lists -- "vector" etc.  [ is.vector(..., "double") ]
In-Reply-To: <199901041026.LAA13634@alpha.luc.ac.be> (message from Jim Lindsey on Mon, 4 Jan 1999 11:26:30 +0100 (MET))

>>>>> "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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._