new_ymon: Construct a new year month

Description Usage Arguments Value Examples

View source: R/ymon.R

Description

new_ymon() is a fast constructor of ymon objects, with minimal checking. A ymon object is constructed from the integer number of months since the Unix epoch of 1970-01-01. For more robust creation of ymon objects, see ymon() or as_ymon().

Usage

1

Arguments

x

[integer]

The number of months since 1970-01-01.

Value

A ymon object.

Examples

1
2
3
# Internally stored as the number of months since 1970-01-01
new_ymon(0L)
new_ymon(100L)

DavisVaughan/datea documentation built on April 10, 2020, 12:03 a.m.