yr_to_isorange: Extract date ranges from a vector of years

Description Usage Arguments Value

View source: R/eml.R

Description

Extract date ranges from a vector of years

Usage

1
yr_to_isorange(x, type = c("both", "start", "end"))

Arguments

x

vector of years

type

what output to return. both for the range, start for only the start date, end for the end date

Value

years are converted to ISO dates of 1st Jan for a begin date and 31st Dec for end dates. If type = "range" a vector of length 2 is returned. Otherwise a named character string of the specified boundary is returned.


annakrystalli/seabirddiet.devtools documentation built on Nov. 2, 2019, 1:54 p.m.