On Wed, 12 Mar 2003, Torsten Hothorn wrote:
>
> Hi,
>
> I'm a little bit confused about the class of integers (with yesterdays
> r-devel):
>
> R> a <- 1:10
> R> class(a)
> [1] "integer"
> R> inherits(a, "integer")
> [1] FALSE
> R> data.class(a)
> [1] "numeric"
> R> is.numeric(a)
> [1] TRUE
> R>
> Torsten Hothorn writes:
> Hi,
> I'm a little bit confused about the class of integers (with yesterdays
> r-devel):
R> a <- 1:10
R> class(a)
> [1] "integer"
R> inherits(a, "integer")
> [1] FALSE
R> data.class(a)
> [1] "numeric"
R> is.numeric(a)
> [1] TRUE
R> inherits(a, "numeric")
> [1] FAL
Hi,
I'm a little bit confused about the class of integers (with yesterdays
r-devel):
R> a <- 1:10
R> class(a)
[1] "integer"
R> inherits(a, "integer")
[1] FALSE
R> data.class(a)
[1] "numeric"
R> is.numeric(a)
[1] TRUE
R> inherits(a, "numeric")
[1] FALSE
data.class is consistent with R-1.6.2, ok