The 4 options for number types that can be appended to the dataset. A helper data object to be used with create_attribute.

number_type

Format

A named list, keys are named the same as values.

Number Types

  • natural:The number type for this attribute consists of the 'natural' numbers, otherwise known as the counting numbers: 1, 2, 3, 4, etc.

  • whole: The number type for this attribute consists of the 'whole' numbers, which are the natural numbers plus the zero value: 0, 1, 2, 3, 4, etc.

  • integer: The number type for this attribute consists of the 'integer' numbers, which are the natural numbers, plus the zero value, plus the negatives of the natural numbers: ..., -4, -3, -2, -1, 0, 1, 2, 3, 4, etc.

  • real: The number type for this attribute consists of the 'real' numbers, which contains both the rational numbers that can be expressed as fractions and the irrational numbers that can not be expressed as fractions (such as the square root of 2).

Examples

number_type$natural #"natural"
#> [1] "natural"
number_type$whole   
#> [1] "whole"