Skip to content
Prev 325387 / 398503 Next

Removing "NA" from matrix

On Jun 14, 2013, at 7:03 AM, Katherine Gobin wrote:

            
Perhaps:

dat_cor = cor(dat[ , sapply(dat, function(col) sd(col) != 0 ) ] )
Please post in plain text.
David Winsemius
Alameda, CA, USA