yearquarter {grates}R Documentation

Constructor for yearquarter objects

Description

yearquarter() is a constructor for ⁠<grates_yearquarter>⁠ objects.

Usage

yearquarter(year = integer(), quarter = integer())

Arguments

year

⁠[integer]⁠

Vector representing the year associated with quarter.

double vectors will be converted via as.integer(floor(x)).

quarter

⁠[integer]⁠

Vector representing the quarter associated with 'year.

double vectors will be converted via as.integer(floor(x)).

Details

⁠<grates_yearquarter>⁠ objects are stored as the number of quarters (starting at 0) since the Unix Epoch (1970-01-01).

Value

A ⁠<grates_yearquarter>⁠ object.

See Also

as_yearquarter() and new_yearquarter().

Examples

yearquarter(year = 2000L, quarter = 3L)


[Package grates version 1.2.0 Index]