group_by.mcmc_data: Group mcmc data

View source: R/group-by.R

group_by.mcmc_dataR Documentation

Group mcmc data

Description

Group mcmc data

Usage

## S3 method for class 'mcmc_data'
group_by(.data, ..., .add = FALSE)

Arguments

.data

An mcmc_data object

...

In group_by(), variables or computations to group by. Computations are always done on the ungrouped data frame. To perform computations on the grouped data, you need to use a separate mutate() step before the group_by(). Computations are not allowed in nest_by(). In ungroup(), variables to remove from the grouping.

.add

When FALSE, the default, group_by() will override existing groups. To add to the existing groups, use .add = TRUE.

This argument was previously called add, but that prevented creating a new grouping variable called add, and conflicts with our naming conventions.

Examples

group_by(mcmc_data_example, homeworld, species)

poissonconsulting/mcmcdata documentation built on June 5, 2023, 8:38 a.m.