GenEst (version 1.4.5)

dateToDay: 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

Run this code
# NOT RUN {
  x <- c("2018-01-01", "2018-02-01")
  dateToDay(x, x[1])

# }

Run the code above in your browser using DataCamp Workspace