Description Usage Arguments Details Value
Convert a character or date class to decimal, taking into account leap years.
1 |
date |
Either a |
This makes use of the lubridate::decimal_date
to compute the
proportion of the year that has passed. If the date is numeric, it is
returned as such. If it is "character"
, we try to coerce to date
through lubridate::ymd
, ergo, it is best to specify a character string
in an unambiguous "YYYY-MM-DD"
format. If date
is given in a
"Date"
class it is dealt with accordingly.
Numeric expression of the date, year plus the fraction of the year passed as of the date.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.