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

From: Sebastian Luque <spluque_at_gmail.com>
Date: Wed 03 Aug 2005 - 13:00:11 EST

Spencer Graves <spencer.graves@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

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Wed Aug 03 13:05:14 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 15:02:12 EST