[R] Question about is.na for missing data

Karl Ove Hufthammer karl at huftis.org
Thu Oct 29 18:21:29 CET 2009


On Thu, 29 Oct 2009 18:12:34 +0100 Karl Ove Hufthammer <karl at huftis.org> 
wrote:
> >   rhs is the wrong length for indexing by a logical matrix
> > 
> > An inspection of the data set reveals no value of the sort give above.  
> > Any thoughts?
> 
> I would venture to guess that your 'asd' object is not of the type you 
> think it is.

More specifically, I think it is a data frame with more than one column. 
Then 'mean' will calculate the average value for each column, instead of 
a single value.

-- 
Karl Ove Hufthammer




More information about the R-help mailing list