Skip to content
Prev 207160 / 398503 Next

Na.omit on matrix, does the matrix have to have a limited size

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]
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
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