mlimit-methods: Add a $limit stage to a MongoPipeline.

Description Usage Arguments Value

Description

Add a $limit stage to a MongoPipeline.

Usage

1
2
3
4
mlimit(p, limit)

## S4 method for signature 'MongoPipeline,numeric'
mlimit(p, limit)

Arguments

p

A MongoPipeline instance.

limit

The number of documents to include in the result.

Value

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


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