Skip to content
Prev 136632 / 398498 Next

Removing columns that are all NA from a matrix

On 2/14/2008 7:59 AM, Martin Waller wrote:
mymat[,which(colMeans(is.na(mymat)) < 1)]