[R] looking for the na.omit equivalent for a matrix of characters

From: Andrew Yee <andrewjyee_at_gmail.com>
Date: Mon, 28 May 2007 22:49:57 -0400


I have a matrix of characters (actually numbers that have been read in as numbers), and I'd like to remove the NA.

I'm familiar with na.omit, but is there an equivalent of na.omit when the NA are the actual characters "NA"?

Thanks,
Andrew

        [[alternative HTML version deleted]]



R-help_at_stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue 29 May 2007 - 02:55:48 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 29 May 2007 - 05:31:23 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.