Re: [R] quantiles for dates

2008-05-14 Thread Dieter Menne
GOUACHE David arvalisinstitutduvegetal.fr> writes: > I was wondering if there is a package in which someone would have > created a quantile function that handles vectors of class "Date". Since dates are just decorated numbers, you can convert in both way. Written the long way: dt = rpois(100,1

Re: [R] quantiles for dates

2008-05-14 Thread Gabor Grothendieck
Try this: > dd <- Sys.Date() + 1:10 > as.Date(quantile(as.numeric(dd)), origin = "1970-01-01") 0% 25% 50% 75% 100% "2008-05-15" "2008-05-17" "2008-05-19" "2008-05-21" "2008-05-24" On Wed, May 14, 2008 at 11:21 AM, GOUACHE David <[EMAIL PROTECTED]> wro

Re: [R] quantiles for dates

2008-05-14 Thread Prof Brian Ripley
On Wed, 14 May 2008, GOUACHE David wrote: Hello all, I was wondering if there is a package in which someone would have created a quantile function that handles vectors of class "Date". What is the median of today and tomorrow, expressed as a day? Quantiles of discrete distributions are not

[R] quantiles for dates

2008-05-14 Thread GOUACHE David
Hello all, I was wondering if there is a package in which someone would have created a quantile function that handles vectors of class "Date". In advance thanks. David Gouache ARVALIS - Institut du végétal Station de La Minière 78280 Guyancourt Tel: 01.30.12.96.22 / Port: 06.86.08.94.32 __