Inherited methods
Method new()
Helper function to specify a time period.
Helper function to specify a season.
Helper function to specify a month.
Create a year.
Arguments
value
A numerical scalar.
Returns
Object of R6Class
with methods to set
common time periods and specifications for years.
Method take()
Specify a year.
Usage
Year$take(x = NA, type = NA, ignore_errors = FALSE)
Arguments
x
A numerical scalar. The range of valid values
depends on type
. If type
is "spring"
,
"summer"
, "autumn"
, or "winter"
,
x
is ignored.
type
A character scalar. The following values are
supported: "spring"
, "summer"
, "autumn"
,
"winter"
, and all English-language months.
ignore_errors
If `TRUE`, error messages are ignored.
Returns
Object of R6Class
with methods to set
common time periods and specifications for years.
Method clone()
The objects of this class are cloneable with this method.
Usage
Year$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.