dateToDay {GenEst} | R Documentation |
Calculate day of study from calendar date
Description
Convert calendar date to integer day from a reference date
(ref
).
Usage
dateToDay(date, ref = NULL)
Arguments
date |
A date or vector of dates to convert to days. |
ref |
Reference date. |
Value
Numeric value(s) of days from ref
.
Examples
x <- c("2018-01-01", "2018-02-01")
dateToDay(x, x[1])
[Package GenEst version 1.4.9 Index]