martedì 15 maggio 2007

Large Matrix into a vector

mx <- matrix(rnorm(100,1:100),10,10)
vec <- c(mx)
or
vec <- c(as.matrix(mx))
or
dim(mx) <- NULL

2 commenti: