On 03.05.2011 13:16, nuncio m wrote:
Hi list, I have a matrix with all elements of some columns are zeroes. Is it possible to remove these columns:
Xnew <- X[ , as.logical(colSums(X)), drop=FALSE] Uwe Ligges
and create a new matrix nuncio
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.