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

add_sets

Add sets to a TidySet


Description

Functions to add sets. If the sets are new they are added, otherwise they are omitted.

Usage

add_sets(object, sets, ...)

Arguments

object

A TidySet object

sets

A character vector of sets to be added.

...

Placeholder for other arguments that could be passed to the method. Currently not used.

Value

A TidySet object with the new sets.

Note

add_sets doesn't set up any other information about the sets. Remember to add/modify them if needed with mutate or mutate_set

See Also

Other add_*: add_elements(), add_relations()

Examples

x <- list("a" = letters[1:5], "b" = LETTERS[3:7])
a <- tidySet(x)
b <- add_sets(a, "fg")
sets(b)

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.