Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.LNX.4.64.1001211615380.13593@tajo.ucsd.edu>
Date: 2010-01-22T00:22:52Z
From: Charles C. Berry
Subject: Na.omit on matrix, does the matrix have to have a limited size
In-Reply-To: <1264115646712-1069099.post@n4.nabble.com>

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