ISOyear: speedily converting years to POSIXct values

ISOyearR Documentation

speedily converting years to POSIXct values

Description

Converts integer years (e.g. 2023) to POSIXct date/time values (e.g. ⁠2023-07-02 12:00:00 GMT⁠) corresponding to July 2, noon, which is the middle of the (non-leap) year. The function keeps a cache of already converted values, as the underlying function ISOdate() is rather slow.

Usage

ISOyear(year)

Arguments

year

Vector of years to convert to POSIXct.

Value

A vector of POSIXct values.

Author(s)

Michaja Pehl

Examples

ISOyear(c(2005, 2010, 2100, 1900))

pik-piam/quitte documentation built on April 26, 2024, 12:58 a.m.