cutmondate-methods: Methods to Generate Date Cuts

cutmondate-methodsR Documentation

Methods to Generate Date Cuts

Description

Methods to cut sequences of mondate, Date, and POSIXt objects. This is essentially a wrapper for the cut.mondate method with more intuitive defaults for the arguments depending on the object being cut.

Methods

signature(x = "mondate")

calls the cut.mondate function

signature(x = c("Date", "character"))

checks for breaks = "months", "years", or "quarters". If so, calls the cut.mondate function using x = mondate(x, displayFormat = " otherwise, simply passes the arguments on to the cut.Date method. The display argument to "mondate" ensures that the levels will display according to the default "Date" format.

signature(x = c("Date", "missing"))

if breaks is omitted, "months" is assumed.

signature(x = c("Date", "ANY"))

if breaks is anything else, the entire argument list is passed on to cut.Date.

signature(x = "POSIXt")

cutmondate is called again with x = as.Date(x).


chiefmurph/mondate documentation built on Aug. 29, 2022, 4:13 p.m.