bro_top_n: Filter top n rows by value

Description Usage Arguments

View source: R/helpers.R

Description

This function sorts a data frame by one or more columns and returns the top n rows. In contrast to dplyr::top_n, this function alows to sort by multiple columns and returns exactly n rows even if ties are present in the columns used for sorting.

Usage

1

Arguments

df

data frame to filter

n

number of rows to return

...

names of columns to sort by


jbengler/bro documentation built on Dec. 8, 2019, 12:44 p.m.