powered by
Set a Decade and Get its Time Interval
unstruwwel::Periods -> Decade
unstruwwel::Periods
Decade
Decade$new()
Decade$clone()
Inherited methods unstruwwel::Periods$set_additions() unstruwwel::Periods$take()
unstruwwel::Periods$set_additions()
unstruwwel::Periods$take()
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.
R6Class
clone()
The objects of this class are cloneable with this method.
Decade$clone(deep = FALSE)
deep
Whether to make a deep clone.
An Object of R6Class with methods to set common time periods and specifications for decades.
if (interactive()) { x <- Decade$new(1520) x$take(1, type = "half") }
Run the code above in your browser using DataLab