Decade {unstruwwel}R Documentation

Set a Decade and Get its Time Interval

Description

Set a Decade and Get its Time Interval

Set a Decade and Get its Time Interval

Details

An Object of R6Class with methods to set common time periods and specifications for decades.

Super class

unstruwwel::Periods -> Decade

Methods

Public methods

Inherited methods

Method 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.

Usage
Decade$new(value, official_def = FALSE)
Arguments
value

A numerical scalar.

official_def

If 'TRUE', the official definition that begins with the year 1 is used.

Returns

Object of R6Class with methods to set common time periods and specifications for decades.


Method clone()

The objects of this class are cloneable with this method.

Usage
Decade$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

if (interactive()) {
x <- Decade$new(1520)
x$take(1, type = "half")
}


[Package unstruwwel version 0.2.0 Index]