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.


returnString/mongoplyr documentation built on Oct. 1, 2017, 6:44 a.m.