Learn R Programming

BaseSet (version 0.0.17)

power_set: Create the power set

Description

Create the power set

Usage

power_set(object, set, name, ...)

Value

A TidySet object with the new set

Arguments

object

A TidySet object.

set

The name of the set to be used for the power set

name

The root name of the new set.

...

Other arguments passed down if possible. Currently ignored.

See Also

Other methods: TidySet-class, activate(), add_column(), add_relation(), arrange.TidySet(), cartesian(), complement_element(), complement_set(), complement(), element_size(), elements(), filter.TidySet(), group_by.TidySet(), group(), incidence(), intersection(), is.fuzzy(), is_nested(), move_to(), mutate.TidySet(), nElements(), nRelations(), nSets(), name_elements<-(), name_sets<-(), name_sets(), pull.TidySet(), relations(), remove_column(), remove_element(), remove_relation(), remove_set(), rename_elements(), rename_set(), select.TidySet(), set_size(), sets(), subtract(), union()

Examples

Run this code
relations <- data.frame(
    sets = c(rep("a", 5), "b"),
    elements = letters[seq_len(6)]
)
TS <- tidySet(relations)
power_set(TS, "a", name = "power_set")

Run the code above in your browser using DataLab