Learn R Programming

set6 (version 0.1.1)

properties: Set Properties

Description

Returns an object of class Properties, which lists the properties of the Set.

Arguments

R6 Usage

$properties

Details

Set properties include:

  • empty - is the Set empty or does it contain elements?

  • singleton - is the Set a singleton? i.e. Does it contain only one element?

  • cardinality - number of elements in the Set

  • countability - One of: countably finite, countably infinite, uncountable

  • closure - One of: closed, open, half-open

The Properties class is essentially a read-only list, with '$' and '[' for accessing elements but without a '[[' method. It is not exported and therefore can be considered abstract.

See Also

Other set accessors: class(), elements, length(), lower, max(), min(), range(), traits, type, universe, upper