| date_yw {dint} | R Documentation |
A Simple S3-Class for Year-Isoweek Dates
Description
A simple data type for storing year-isoweek dates in a human readable integer
format, e.g.: the 52nd isoweek of 2012 is stored as 201252. Supports simple
arithmetic operations such as + and - as well formatting.
Usage
date_yw(y, w)
is_date_yw(x)
as_date_yw(x)
Arguments
y |
year |
w |
week (optional) |
x |
any R object |
Value
date_yw returns an object of type date_yw
is_date_yw returns TRUE or FALSE depending on whether its
argument is of type date_yw or not.
as_date_yw attempts to coerce its argument to date_yw
See Also
format.date_yw(), seq.date_yw(), date_xx_arithmetic()
Other date_xx subclasses:
date_ym(),
date_yq(),
date_y()
Examples
date_yw(2013, 12)
as_date_yw(201612)
[Package dint version 2.1.4 Index]