[R] Na.omit on matrix, does the matrix have to have a limited size
Charles C. Berry
cberry at tajo.ucsd.edu
Fri Jan 22 01:22:52 CET 2010
On Thu, 21 Jan 2010, anna wrote:
[in response to a suggestion (that was deleted in this reply) that there
are NAs where OP did not expect them]
>
> No, the NA values are in the same rows and there are only 28 of missing value
> rows...
Sorry, but I'm with Peter on this one. You must have NAs in the other
columns.
What do these return?
dim( mat )
table( rowSums( !is.na( mat ) ) )
table( colSums( !is.na( mat ) ) )
(where 'mat' is the matrix or data.frame that you are using)
Chuck
> --
> View this message in context: http://n4.nabble.com/Na-omit-on-matrix-does-the-matrix-have-to-have-a-limited-size-tp1068000p1069099.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.
>
Charles C. Berry (858) 534-2098
Dept of Family/Preventive Medicine
E mailto:cberry at tajo.ucsd.edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
More information about the R-help
mailing list