[R] aggregate function

2007-04-23 Thread Michel Schnitz
Hello, is there a way to use the aggregate function to calculate monthly mean in case i have one row in data frame that holds the date like -mm-dd? i know that it works for daily means. i also like to do it for monthly and yearly means. maybe there is something like aggregate(x,

Re: [R] aggregate function

2007-04-23 Thread Michel Schnitz
$Date - as.Date(DF$Date) aggregate(DF[z], list(yearmon = format(DF$Date, %Y-%m)), mean) On 4/23/07, Michel Schnitz [EMAIL PROTECTED] wrote: Hello, is there a way to use the aggregate function to calculate monthly mean in case i have one row in data frame that holds the date like