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 Oct. 1, 2017, 6:44 a.m.