On May 23, 2012, at 8:44 PM, Chris Burns wrote:

How do I trim a matrix to exclude columns that have no standard deviation?


 mtx[ , as.logical(apply(mtx, 2, sd))]


--

David Winsemius, MD
West Hartford, CT

______________________________________________
[email protected] 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.

Reply via email to