R: Coercion to R6 'Set'/'Tuple'

as.Set {set6} | R Documentation

## 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

Set Tuple

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

[Package set6 version 0.2.1 Index]