cut.POSIXt {base} | R Documentation |
Method for cut
applied to date-time objects.
## S3 method for class 'POSIXt'
cut(x, breaks, labels=NULL, start.on.monday=TRUE, ...)
x |
an object inheriting from class |
breaks |
a vector of cut points or number giving the number of
intervals which |
labels |
labels for the levels of the resulting category. By default,
labels are constructed using |
start.on.monday |
logical. If |
... |
arguments to be passed to or from other methods. |
A factor is returned, unless labels = FALSE
which returns
the integer level codes.
seq.POSIXt
, cut
## random dates in a 10-week period
cut(ISOdate(2001, 1, 1) + 70*86400*runif(100), "weeks")