[Rd] seq.Date requires by

Vadim Ogranovich vograno at evafunds.com
Fri Dec 3 20:29:08 CET 2004


Hi,

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

This is R-1.9.1, but I haven't seen anything pertaining in the release
notes of 2.0.x.

Thanks,
Vadim



More information about the R-devel mailing list