date_yq | R Documentation |
A simple data type for storing year-quarter dates in a human readable integer
format, e.g.: 3.Quarter of 2012 is stored as 20123. Supports simple
arithmetic operations such as +
and -
as well formatting.
date_yq(y, q) is_date_yq(x) as_date_yq(x)
y |
year |
q |
quarter (optional) |
x |
any R object |
date_yq
returns an object of type date_yq
is_date_yq
returns TRUE
or FALSE
depending on whether its
argument is of type date_yq
or not.
as_date_yq
attempts to coerce its argument to date_yq
format.date_yq()
, seq.date_yq()
, date_xx_arithmetic()
Other date_xx subclasses:
date_ym()
,
date_yw()
,
date_y()
date_yq(2013, 3) as_date_yq(20161)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.