[Rd] is.vector(as.vector(x)) is FALSE

From: Gabor Grothendieck <ggrothendieck_at_myway.com>
Date: Sun 17 Oct 2004 - 11:51:47 EST

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 Received on Sun Oct 17 11:57:30 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 09:00:36 EST