[R] cut.Date functionality for chron date/time objects

Sebastian Luque spluque at gmail.com
Wed Aug 3 05:00:11 CEST 2005


Spencer Graves <spencer.graves at pdf.com> wrote:
> How about the following:
>
>> set.seed(123)
>> mychron <- chron(sort(runif(10, 0, 10)))
>> (breaks <- chron(pretty(quantile(mychron))))
> [1] 01/01/70 01/03/70 01/05/70 01/07/70 01/09/70 01/11/70

I was looking for a way to cut it into specified units of time, rather
than quantiles. Anyway, both your suggestions show one can go very far
with the breaks arg.

Thank you!
-- 
Sebastian P. Luque




More information about the R-help mailing list