Skip to contents

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

Usage

# S4 method for class '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)
#> A B 
#> 5 1