dateToDay: Calculate day of study from calendar date

View source: R/utility_functions.R

dateToDayR 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])


ddalthorp/GenEst documentation built on June 4, 2023, 1 a.m.