Natalie O'Toole wrote:
> Hi,
> 
> Would anyone know how to calculate the modal value of LeafArea?
> 
> Thank-you very much!!
> 
> Nat
> 
> __________________
> 
> Hi all,
> 
> I have 2 questions:
> 
> 1)How do I calculate the mean on an imported txt file? I've imported the 
> file below and that's what it looks like imported. How do I then calcuate 
> the mean, median, or mode on the column LeafArea using the desktop R 
> package?
> 
Hi Nat,
Try this:

leaf.df<-read.table("leafdata.csv",header=TRUE)
library(prettyR)
describe(leaf.df)
Mode(leaf.df$LeafArea)

Jim

______________________________________________
R-help@stat.math.ethz.ch 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.

Reply via email to