[R] calculating means

Bert Gunter gunter.berton at gene.com
Fri Feb 18 17:06:19 CET 2011


Have you read an Intro to R or, indeed, any R documentation? Perhaps
you received no reply because you do not appear to have made an honest
effort to answer the question for yourself. Maybe you should consider
accessing R thru R Commander or one of the other R GUI's -- search
CRAN for details.

-- Bert

On Fri, Feb 18, 2011 at 6:45 AM, Mike Gibson <megalops31 at hotmail.com> wrote:
>
> I apologize if you have already seen my question.  I am new to the mailing list and I did not get any responses the first time I posted my question.  However, I am not sure my post went through.
>
> Here is my situation:
> I have a spreadsheet with columns of fish species (text) and length (numbers).  In the fish species column I have 5 different fish.  I want R to calculate the mean length and standard error for each species.
>
> I tried using the stats functin with
> stats(fishdata, by=species)
>
> R told me it could not find function stats.  Is there a library I need to install to get stats to work?
>
> Mike
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>



-- 
Bert Gunter
Genentech Nonclinical Biostatistics



More information about the R-help mailing list