On Thu, 29 Oct 2009 18:12:34 +0100 Karl Ove Hufthammer <k...@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 ______________________________________________ R-help@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.