Skip to content
Prev 264116 / 398502 Next

median time period

Typical - you post to the list and then work it out for yourself!

Anyway here's my solution

Toy code as before then:

intervalsMonths <- 12 * intervals$year + intervals$month

#convert whole years to months then add the remaining months for that entry in intervals

medianMonths <- median(as.numeric(intervalsMonths))

Best

iain
--- On Wed, 29/6/11, Iain Gallagher <iaingallagher at btopenworld.com> wrote: