[R] (RESOLVED) Re: Removing columns that are all NA from a matrix

From: Martin Waller <martinej.waller_at_ntlworld.com>
Date: Thu, 14 Feb 2008 13:35:30 +0000

Thanks to all who responded - great stuff!

Martin

Martin Waller wrote:
> Hi,
>
> I guess this might be a FAQ or something, and there's probably a nice
> simple way to do it, but I can't think of it:
>
> Given a matrix, I want to remove columns that are _entirely_ filled with
> NAs (partial NAs are fine).
>
> How please?
>
> Thanks,
>
> Martin
>
> ______________________________________________
> R-help_at_r-project.org 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.
>



R-help_at_r-project.org 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 Thu 14 Feb 2008 - 13:53:18 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 Thu 14 Feb 2008 - 14:00:14 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.

list of date sections of archive