DecimalDate | R Documentation |
DecimalDate
DecimalDate(x, by)
x |
Date |
by |
The period used in the conversion. Either "month" or "year". |
Turns a date into a integer, relative to an origin of 1900-01-01. Ignores hours, minutes and seconds.
DecimalDate("2000/01/01", by = "year")
DecimalDate("2000/01/01", by = "month")
DecimalDate("2000/02/01", by = "month")
DecimalDate("2000/06/16", by = "month")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.