make.ISOyear: speedily converting years to POSIXct values

Description Usage Arguments Value Author(s) Examples

View source: R/ISOyear.R

Description

make.ISOyear() creates a closure for speedily converting years to POSIXct values. Initialise the closure with year values you know you will need. Additional values will be added automatically.

Usage

1
make.ISOyear(years = seq(from = 1900, to = 2200, by = 5))

Arguments

years

vector of year numbers to initialise closure with; defaults to 1900 to 2200 in five year steps

Value

function taking an integer year and returning a POSIXct value, based on July 2, 12am GMT as the middle of the year

Author(s)

Michaja Pehl

Examples

1
2
     ISOyear <- make.ISOyear()
     ISOyear(c(2005, 2010, 2100, 1900))

michaja/quitte documentation built on May 22, 2019, 9:53 p.m.