Learn R Programming

unstruwwel (version 0.2.2)

Decade: 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

Arguments

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.

Details

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

Examples

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

Run the code above in your browser using DataLab