[R] fast NA elimination ?

From: ivo welch <ivo_welch_at_mailblocks.com>
Date: Thu 08 Jul 2004 - 00:35:44 EST

dear R wizards: an operation I execute often is the deletion of all observations (in a matrix or data set) that have at least one NA. (I now need this operation for kde2d, because its internal quantile call complains; could this be considered a buglet?) usually, my data sets are small enough for speed not to matter, and there I do not care whether my method is pretty inefficient (ok, I admit it: I use the sum() function and test whether the result is NA)---but now I have some bigger data sets. Is there a recommended method of doing NA elimination most efficiently? sincerely, /iaw

ivo welch
professor of finance and economics
brown / nber / yale

R-help@stat.math.ethz.ch mailing list
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Thu Jul 08 00:40:52 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 02:34:52 EST