get_days_since: Get days since

View source: R/get_days_since.R

get_days_sinceR Documentation

Get days since

Description

Constructs a vector of days since a given date

Usage

get_days_since(
  fromyear,
  len,
  startmoy = 1,
  startdoy = 1,
  by = "months",
  origin = ymd("2001-01-01")
)

Arguments

fromyear

An integer specifying the start year

len

An integer specifying the length of the returned vector

startmoy

An integer specifying the month of year (between 1 and 12) of the first entry of the returned vector. Defaults to 1.

startdoy

An integer specifying the day of year (between 1 and 365) of the first entry of the returned vector. Defaults to 1.

by

A character string specifying the "spacing" between dates. Defaults to "months".

Value

A vector of integers


stineb/rbeni documentation built on Feb. 24, 2023, 5:40 a.m.