Decade | R Documentation |
Set a Decade and Get its Time Interval
Set a Decade and Get its Time Interval
An Object of R6Class
with methods to set
common time periods and specifications for decades.
unstruwwel::Periods
-> Decade
new()
Helper function to specify the beginning of a decade.
Helper function to specify the middle of a decade.
Helper function to specify the end of a decade.
Create a decade.
Decade$new(value, official_def = FALSE)
value
A numerical scalar.
official_def
If 'TRUE', the official definition that begins with the year 1 is used.
Object of R6Class
with methods to set
common time periods and specifications for decades.
clone()
The objects of this class are cloneable with this method.
Decade$clone(deep = FALSE)
deep
Whether to make a deep clone.
if (interactive()) {
x <- Decade$new(1520)
x$take(1, type = "half")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.