cut.Date2: cut.Date2

Description Usage Arguments Value Author(s)

View source: R/pub01_utilityFuncs.R

Description

a wrapped function of cut.Date by adding a parametr lab.side,which indicating if the level of the result is the "end" or "begin" of the real interval.

Usage

1
2
3
## S3 method for class 'Date2'
cut(x, breaks, lab.side = "end", labels = NULL,
  start.on.monday = TRUE, right = FALSE, ...)

Arguments

x

an object inheriting from class "POSIXt" or "Date".

lab.side

a character string("end" or "begin"),indicating if the level of the result is the "end" or the "begin" of the interval

...

other params passed to funcion cut.Date.

Value

A factor is returned, unless labels = FALSE which returns the integer level codes.

Author(s)

Ruifei.Yin


QuantAndrew/QUtility documentation built on May 14, 2019, 7:36 a.m.