Learn R Programming

BaseSet (version 1.0.0)

relations: Relations of the TidySet

Description

Given TidySet retrieve the relations or substitute them. TidySet() object

Usage

relations(object)

relations(object) <- value

# S4 method for TidySet relations(object)

replace_relations(object, value)

# S4 method for TidySet relations(object) <- value

# S4 method for TidySet nRelations(object)

Value

A data.frame with information about the relations between elements and sets.

Arguments

object

Object to be coerced or tested.

value

Modification of the relations.

Methods (by class)

  • relations(TidySet): Retrieve the relations

  • relations(TidySet) <- value: Modify the relations

  • nRelations(TidySet): Return the number of unique relations

See Also

nRelations()

Other slots: elements(), sets()

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

Examples

Run this code
TS <- tidySet(list(A = letters[1:2], B = letters[5:7]))
relations(TS)

Run the code above in your browser using DataLab