top_n_tbl {healthyR}R Documentation

Top N tibble

Description

Get a tibble returned with n records sorted either by descending order (default) or ascending order.

Usage

top_n_tbl(.data, .n_records, .arrange_value = TRUE, ...)

Arguments

.data

The data you want to pass to the function

.n_records

How many records you want returned

.arrange_value

A boolean with TRUE as the default. TRUE sorts data in descending order

...

The columns you want to pass to the function.

Details

Author(s)

Steven P. Sanderson II, MPH

Examples

library(healthyR.data)

df <- healthyR_data

df_tbl <- top_n_tbl(
  .data = df
  , .n_records = 3
  , .arrange_value = TRUE
  , service_line
  , payer_grouping
)

print(df_tbl)


[Package healthyR version 0.2.1 Index]