calculate_average_by_group | R Documentation |
calculate_average_by_group
will calculate an average value per group, given a matrix with cells in the rows and some features in the columns (e.g. expression matrix)
calculate_average_by_group(x, cell_grouping)
x |
A matrix. One row for every cell; one column for every feature. The rows must be named. |
cell_grouping |
A data frame denoting the grouping of the cells.
Format: |
A matrix containing for each feature (column) the average
calculate_average_by_group(
x = example_trajectory$expression,
cell_grouping = example_trajectory$prior_information$groups_id
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.