Re: [R] monthly median in a daily dataset

2010-12-23 Thread Uwe Ligges
dal to multimodal in several occasions. What I would like to see is something close to a violinplot, but I do not want a kernel density estimate... [[elided Yahoo spam]] Thanks in Advance, Enrico __________________ R-help@r-proj

Re: [R] monthly median in a daily dataset

2010-12-21 Thread SNV Krishna
stion is clear. Any assistance will be greatly appreciated and many thanks for the same. Regards, Krishna Date: Sun, 19 Dec 2010 15:42:15 -0800 From: Dennis Murphy To: HUXTERE Cc: r-help@r-project.org Subject: Re: [R] monthly median in a daily dataset Message-ID: Content-Type: text/plai

Re: [R] monthly median in a daily dataset

2010-12-19 Thread Bill.Venables
ill Venables. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of HUXTERE Sent: Monday, 20 December 2010 8:32 AM To: r-help@r-project.org Subject: [R] monthly median in a daily dataset Hello, I have a multi-year dataset (see below) with date, a da

Re: [R] monthly median in a daily dataset

2010-12-19 Thread Dennis Murphy
Hi: There is a months() function associated with Date objects, so you should be able to do something like aggregate(value ~ months(date), data = data$flow$daily, FUN = median) Here's a toy example because your data are not in a ready form: df <- data.frame(date = seq(as.Date('2010-01-01'), by =

[R] monthly median in a daily dataset

2010-12-19 Thread HUXTERE
Hello, I have a multi-year dataset (see below) with date, a data value and a flag for the data value. I want to find the monthly median for each month in this dataset and then plot it. If anyone has suggestions they would be greatly apperciated. It should be noted that there are some dates with n