Skip to contents

Returns the number of sets in the object.

Usage

# S3 method for class 'TidySet'
length(x)

Arguments

x

A TidySet object.

No replacement function is available, either delete sets or add them.

Value

A numeric value.

See also

dim(), ncol() and nrow(). Also look at lengths() for the number of relations of sets.

Examples

TS <- tidySet(list(A = letters[1:5], B = letters[6]))
length(TS)
#> [1] 2