Learn R Programming

distr6 (version 1.1.0)

Naturals: Set of Natural Numbers

Description

The mathematical set of natural numbers.

Value

Returns R6 object of class Naturals.

Constructor

Naturals$new(dim = 1, lower = 0)

Constructor Arguments

Argument Type Details
dim numeric Dimension of the set.
lower integer Where to start the set.

Constructor Details

Generally the lower argument should be ignored, its primary use-case is for the PosNaturals child-class.

Details

The set of Naturals is defined as the counting numbers, i.e. $$Naturals = \{0, 1, 2,...\}$$

See Also

listSpecialSets

Examples

Run this code
# NOT RUN {
Naturals$new()
Naturals$new(dim = 2)

# }

Run the code above in your browser using DataLab