From Matthias.Kohl at uni-bayreuth.de  Sun Oct 17 09:26:15 2004
From: Matthias.Kohl at uni-bayreuth.de (Matthias.Kohl@uni-bayreuth.de)
Date: Sun Oct 17 09:26:19 2004
Subject: [Rd] is.vector(as.vector(x)) is FALSE
In-Reply-To: <loom.20041017T034921-592@post.gmane.org>
References: <loom.20041017T034921-592@post.gmane.org>
Message-ID: <1066.132.180.246.22.1097997975.squirrel@mail.uni-bayreuth.de>

maybe, the point is that is.vector "attempts to coerce its argument into a
vector", but here it fails

is.matrix(as.vector(x1mat))
[1] TRUE

Matthias

>
> The following, which was recently discussions on the rcom-l list,
> is a situation where coercing x1mat to a vector using as.vector
> results in an object that is.vector says is not a vector:
>
>      R> x1mat<-matrix(list(1,1.1,1+1i,"a",NA,NaN), 3, 2)
>      R> is.vector(as.vector(x1mat))
>      [1] FALSE
>
> ______________________________________________
> R-devel@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] is.vector(as.vector(x)) is FALSE
Matthias.Kohl@uni-bayreuth.de