| Year | R Documentation |
Set a Year and Get its Time Interval
Set a Year and Get its Time Interval
An Object of R6Class with methods to set
common time periods and specifications for years.
unstruwwel::Periods -> Year
new()Helper function to specify a time period.
Helper function to specify a season.
Helper function to specify a month.
Create a year.
Year$new(value)
valueA numerical scalar.
Object of R6Class with methods to set
common time periods and specifications for years.
take()Specify a year.
Year$take(x = NA, type = NA, ignore_errors = FALSE)
xA numerical scalar. The range of valid values
depends on type. If type is "spring",
"summer", "autumn", or "winter",
x is ignored.
typeA character scalar. The following values are
supported: "spring", "summer", "autumn",
"winter", and all English-language months.
ignore_errorsIf 'TRUE', error messages are ignored.
Object of R6Class with methods to set
common time periods and specifications for years.
clone()The objects of this class are cloneable with this method.
Year$clone(deep = FALSE)
deepWhether to make a deep clone.
if (interactive()) {
x <- Year$new(1520)
x$take(15, type = "june")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.