View source: R/utility_functions.R
dateToDay | R Documentation |
Convert calendar date to integer day from a reference date
(ref
).
dateToDay(date, ref = NULL)
date |
A date or vector of dates to convert to days. |
ref |
Reference date. |
Numeric value(s) of days from ref
.
x <- c("2018-01-01", "2018-02-01")
dateToDay(x, x[1])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.