lengths,TidySet-method {BaseSet}R Documentation

Lengths of the TidySet

Description

Returns the number of relations of each set in the object.

Usage

## S4 method for signature 'TidySet'
lengths(x, use.names = TRUE)

Arguments

x

A TidySet object.

use.names

A logical value whether to inherit names or not.

Value

A vector with the number of different relations for each set.

See Also

length(), Use set_size() if you are using fuzzy sets.

Examples

TS <- tidySet(list(A = letters[1:5], B = letters[6]))
lengths(TS)

[Package BaseSet version 0.9.0 Index]