top_n: Retrieve top 'n' elements.

Description Usage Arguments

Description

dplyr's dplyr::top_n is a function, here we define an S3 method whose default implementation calls the function from dplyr.

Usage

1
top_n(.data, n, wt)

Arguments

.data

A query, repository or a class supported by dplyr.

n

The number of elements to retrieve.

wt

(Optional). The variable to use for ordering. Supported only in dplyr.


lbartnik/repository documentation built on May 28, 2019, 9:50 a.m.