From roebuck at odin.mdacc.tmc.edu  Fri Dec  3 23:16:31 2004
From: roebuck at odin.mdacc.tmc.edu (Paul Roebuck)
Date: Fri Dec  3 23:16:35 2004
Subject: [Rd] seq.Date requires by
In-Reply-To: <C698D707214E6F4AB39AB7096C3DE5A575195F@phost015.EVAFUNDS.intermedia.net>
References: <C698D707214E6F4AB39AB7096C3DE5A575195F@phost015.EVAFUNDS.intermedia.net>
Message-ID: <Pine.OSF.4.58.0412031612410.150754@odin.mdacc.tmc.edu>

On Fri, 3 Dec 2004, Vadim Ogranovich wrote:

> What is the reason for seq.Date to require the 'by' argument and not to
> default it to 1 in the example below?
>
>
> > seq(from=as.Date("1996-01-01"), to=as.Date("1996-12-01"))
> Error in seq.Date(from = as.Date("1996-01-01"), to =
> as.Date("1996-12-01")) :
>  exactly two of `to', `by' and `length.out' / `along.with' must be
> specified
>

>From a programming aspect, default to 1 what? day? hour?
minute? second? microsecond? How would it determine what
unit you desired from the [pre]converted value it received
as an argument?

----------------------------------------------------------
SIGSIG -- signature too long (core dumped)


[Rd] seq.Date requires by
Paul Roebuck