top_q: Select top q rows (by value)

top_qR Documentation

Select top q rows (by value)

Description

Select top q rows (by value)

Usage

top_q(x, q, wt, na.rm = TRUE, .arrange = FALSE, verbose = getOption("verbose"))

Arguments

x

(tabular data)

q

(numeric) between 0 and 1; passed to quantile()

wt

the variable to use for ordering.

na.rm

(logical) ignore NAs in wt?

.arrange

(logical) sort the results by wt?

Examples

top_q(mtcars, q = 0.9, wt = mpg)


BAAQMD/qtytools documentation built on June 30, 2022, 6:07 p.m.