Displaying 1 result from an estimated 1 matches for "numarray".
Did you mean:
sumarray
2002 Jan 16
0
inconsistent(?) behavior of as.vector
According to the documentation for as.vector, it removes all attributes
from its argument ("the attributes of x are removed"). This does not
seem to be the case for a list with a dim attribute. Consider the
following code:
numarray <- vector("numeric",4)
dim(numarray) <- c(2,2)
dimnames(numarray) <- list(c("A","B"),c("C","D"))
numarray[] <- 1:4
listarray <- vector("list",4)
dim(listarray) <- c(2,2)
dimnames(listarray) <- list(c("A-",&q...