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

is_nested

Are some sets as elements of other sets?


Description

Check if some elements are also sets of others. This is also known as hierarchical sets.

Usage

is_nested(object)

## S3 method for class 'TidySet'
is_nested(object)

Arguments

object

A TidySet object.

Value

A logical value: TRUE if there are some sets included as elements of others.

See Also

adjacency

Examples

relations <- list(A = letters[1:3], B = c(letters[4:5]))
TS <- tidySet(relations)
is_nested(TS)
TS2 <- add_relation(TS, data.frame(elements = "A", sets = "B"))
# Note that A is both a set and an element of B
TS2
is_nested(TS2)

BaseSet

Working with Sets the Tidy Way

v0.0.16
MIT + file LICENSE
Authors
Lluís Revilla Sancho [aut, cre] (<https://orcid.org/0000-0001-9747-2570>), Zebulun Arendsee [rev], Jennifer Chang [rev]
Initial release

We don't support your browser anymore

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