msort-methods: Add a $sort stage to a MongoPipeline.

Description Usage Arguments Value

Description

Add a $sort stage to a MongoPipeline.

Usage

1
2
3
4
msort(p, ...)

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

Arguments

p

A MongoPipeline instance.

...

Named arguments for sort fields, indicating whether to sort in ascending (1) or descending (-1) order.

Value

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


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