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.


returnString/mongoplyr documentation built on May 17, 2019, 2:22 p.m.