Add a cell grouping to a data wrapper

add_grouping(model, grouping, group_ids = NULL, ...)

is_wrapper_with_grouping(model)

get_grouping(model, grouping = NULL)

Arguments

model

The model to which the grouping will be added.

grouping

A grouping of the cells, can be a named vector or a dataframe with group_id (character) and cell_id (character)

group_ids

All group_ids, optional

...

Extra information to be stored in the wrapper.