Learn R Programming

set6 (version 0.1.6)

LogicalSet: Set of Logicals

Description

The LogicalSet is defined as the Set containing the elements TRUE and FALSE.

Arguments

Super class

set6::Set -> LogicalSet

Methods

Public methods

Method new()

Create a new LogicalSet object.

Usage

LogicalSet$new()

Details

The Logical set is the set containing TRUE and FALSE.

Returns

A new LogicalSet object.

Method clone()

The objects of this class are cloneable with this method.

Usage

LogicalSet$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

See Also

Other sets: ConditionalSet, FuzzySet, FuzzyTuple, Interval, Set, Tuple, UniversalSet

Examples

Run this code
# NOT RUN {
l = LogicalSet$new()
print(l)
l$contains(list(TRUE, 1, FALSE))

# }

Run the code above in your browser using DataLab