search for: listarray

Displaying 1 result from an estimated 1 matches for "listarray".

2002 Jan 16
0
inconsistent(?) behavior of as.vector
...moved"). 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-","A+"),c("B-","B+")) listarray[["A+","B-"]] <- A ~ 1 listarray[["A+","B+"]] <- A + B ~ 1 ## You get the idea for t...