year {grates}R Documentation

Construct a year object

Description

year() is a constructor for ⁠<grates_year>⁠ objects.

Usage

year(x = integer())

is_year(object)

Arguments

x

⁠[integer]⁠

Vector representing the years.

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

object

R object.

Value

A ⁠<grates_year>⁠ object.

Examples

year(2011:2020)


[Package grates version 1.2.0 Index]