Learn R Programming

BaseSet (version 0.0.17)

add_elements: Add elements to a TidySet

Description

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

Usage

add_elements(object, elements, ...)

Value

A TidySet object with the new elements.

Arguments

object

A TidySet object

elements

A character vector of the elements.

...

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

See Also

Other add_*: add_relations(), add_sets()

Examples

Run this code
x <- list("a" = letters[1:5], "b" = LETTERS[3:7])
a <- tidySet(x)
b <- add_elements(a, "fg")
elements(b)

Run the code above in your browser using DataLab