[R] help

Jim Lemon jim at bitwrit.com.au
Thu Apr 26 12:03:05 CEST 2007


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



More information about the R-help mailing list