Skip to content
Prev 66911 / 398525 Next

Error in colMeans ... what's wrong with my data?

On Fri, 1 Apr 2005, Hartmut Weinrebe wrote:

            
You applied colMeans to a data frame: the help page says

        x: an array of two or more dimensions, containing numeric,
           complex, integer or logical values, or a numeric data frame.

One or more columns of `struktur' are not numeric.  (Note that whereas an 
array can be logical, a data frame must be wholly numeric.)