timeUnits | R Documentation |
'months'
and 'years'
To support additional time units 'months'
and 'years'
for difftime object.
timeUnits()
Every 4 years has 1461(=365*4+1)
days, or 48(=4*12)
months.
Therefore, every month has 30.44(=1461/48)
days, or 4.35(=1461/48/7)
weeks.
Every year has 12 months.
Function timeUnits returns a named constant character vector.
Function units<-.difftime
only supports
'secs'
, 'mins'
, 'hours'
, 'days'
, 'weeks'
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.