Learn R Programming

unstruwwel (version 0.2.1)

Century: Set a Century and Get its Time Interval

Description

Set a Century and Get its Time Interval

Set a Century and Get its Time Interval

Arguments

Super class

unstruwwel::Periods -> Century

Methods

Inherited methods


Method new()

Helper function to specify the beginning of a century.

Helper function to specify the middle of a century.

Helper function to specify the end of a century.

Create a century.

Usage

Century$new(value)

Arguments

value

A numerical scalar.

Returns

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


Method clone()

The objects of this class are cloneable with this method.

Usage

Century$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 centuries.

Examples

Run this code
if (interactive()) {
x <- Century$new(15)
x$take(2, type = "third")
}

Run the code above in your browser using DataLab