Skip to content
Prev 58299 / 398502 Next

deleting specified NA values

Gabor Grothendieck <ggrothendieck at myway.com> writes:
If you want to get sneaky, there's also

 x[!!rowSums(!is.na(x)),]

although I think I'd prefer

 x[apply(!is.na(x),1,any),]