View source: R/data-tbl-top-n-counts.R
top_n_tbl | R Documentation |
Get a tibble returned with n records sorted either by descending order (default) or ascending order.
top_n_tbl(.data, .n_records, .arrange_value = TRUE, ...)
.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. |
Requires a data.frame/tibble
Requires at least one column to be chosen inside of the ...
Will return the tibble in sorted order that is chosen with descending as the default
Steven P. Sanderson II, MPH
Other Data Table Functions:
category_counts_tbl()
,
los_ra_index_summary_tbl()
,
named_item_list()
,
ts_census_los_daily_tbl()
,
ts_signature_tbl()
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.