Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

as.Set

Coercion to R6 Set/Tuple


Description

Coerces object to an R6 Set/Tuple

Usage

as.Set(object)

## Default S3 method:
as.Set(object)

## S3 method for class 'numeric'
as.Set(object)

## S3 method for class 'list'
as.Set(object)

## S3 method for class 'matrix'
as.Set(object)

## S3 method for class 'data.frame'
as.Set(object)

## S3 method for class 'Set'
as.Set(object)

## S3 method for class 'FuzzySet'
as.Set(object)

## S3 method for class 'Interval'
as.Set(object)

## S3 method for class 'ConditionalSet'
as.Set(object)

as.Tuple(object)

## Default S3 method:
as.Tuple(object)

## S3 method for class 'numeric'
as.Tuple(object)

## S3 method for class 'list'
as.Tuple(object)

## S3 method for class 'matrix'
as.Tuple(object)

## S3 method for class 'data.frame'
as.Tuple(object)

## S3 method for class 'FuzzySet'
as.Tuple(object)

## S3 method for class 'Set'
as.Tuple(object)

## S3 method for class 'Interval'
as.Tuple(object)

## S3 method for class 'ConditionalSet'
as.Tuple(object)

as.Multiset(object)

## Default S3 method:
as.Multiset(object)

## S3 method for class 'numeric'
as.Multiset(object)

## S3 method for class 'list'
as.Multiset(object)

## S3 method for class 'matrix'
as.Multiset(object)

## S3 method for class 'data.frame'
as.Multiset(object)

## S3 method for class 'FuzzySet'
as.Multiset(object)

## S3 method for class 'Set'
as.Multiset(object)

## S3 method for class 'Interval'
as.Multiset(object)

## S3 method for class 'ConditionalSet'
as.Multiset(object)

Arguments

object

object to coerce

Details

  • as.Set.default - Creates a Set using the object as the elements.

  • as.Set.list - Creates a Set for each element in list.

  • as.Set.matrix/as.Set.data.frame - Creates a Set for each column in matrix/data.frame.

  • as.Set.FuzzySet - Creates a Set from the support of the FuzzySet.

  • as.Set.Interval - If the interval has finite cardinality then creates a Set from the Interval elements.

See Also

Other coercions: as.FuzzySet(), as.Interval()


set6

R6 Mathematical Sets Interface

v0.2.1
MIT + file LICENSE
Authors
Raphael Sonabend [aut, cre] (<https://orcid.org/0000-0001-9225-4654>), Franz Kiraly [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.