Monday, 8 June 2015

Removing NA from a vector....

NAs cause problems.

Here's how to get rid of them from a vector....


d <- d[!is.na(d)]

from:
http://stackoverflow.com/questions/7706876/r-script-removing-na-values-from-a-vector


No comments:

Post a Comment