Learn R Programming

BaseSet (version 1.0.0)

group_by.TidySet: group_by TidySet

Description

Use group_by to group the TidySet object. You can use activate with group_by or with the whole data.

Usage

# S3 method for TidySet
group_by(.data, ...)

Value

A grouped data.frame (See The dplyr help page)

Arguments

.data

The TidySet object

...

The logical predicates in terms of the variables of the sets

See Also

dplyr::group_by() and activate()

Other methods: TidySet-class, activate(), add_column(), add_relation(), arrange.TidySet(), cartesian(), complement(), complement_element(), complement_set(), element_size(), elements(), filter.TidySet(), group(), incidence(), intersection(), is.fuzzy(), is_nested(), move_to(), mutate.TidySet(), nElements(), nRelations(), nSets(), name_elements<-(), name_sets(), name_sets<-(), power_set(), 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", rep("a2", 5), "b2"),
    elements = rep(letters[seq_len(6)], 2),
    fuzzy = runif(12)
)
a <- tidySet(relations)
elements(a) <- cbind(elements(a),
    type = c(rep("Gene", 4), rep("lncRNA", 2))
)
group_by(a, elements)

Run the code above in your browser using DataLab