[R] Delete missing value rows from a matrix
Carlos J. Gil Bellosta
cgb at datanalytics.com
Wed Feb 3 17:34:40 CET 2010
Hello,
You can run a row-wise all( is.na( ) ).
You will then detect rows consisting of NAs only.
Best regards,
Carlos J. Gil Bellosta
http://www.datanalytics.com
anna wrote:
> Hi everyone,
> I have a matrix with many Na's. Some rows contain some Na's and some others
> are entirely composed of Na's. I want to delete the rows that are entirely
> composed of Na's but not the other ones so I can't use a simple removeNA.
> Has any one an idea?
>
> -----
> Anna Lippel
More information about the R-help
mailing list