mgroup-methods: Add a $group stage to a MongoPipeline.

Description Usage Arguments Value

Description

Add a $group stage to a MongoPipeline.

Usage

1
2
3
4
mgroup(p, by, ...)

## S4 method for signature 'MongoPipeline'
mgroup(p, by, ...)

Arguments

p

A MongoPipeline instance.

by

The grouping variable(s), as an expression.

...

Zero or more name=value pairs where name represent a field to create, and values are accumulator expressions.

Value

A copy of the previous pipeline, with the new stage added.


Ka2wei/mongoplyr documentation built on May 23, 2019, 6:02 p.m.