Skip to contents

This function creates a datatable with automatic formatting for percentage, currency, and numeric columns, using guess_col_fmts() to determine which columns are percentages, currency, or numeric.

Usage

auto_dt(data, pct_digits = 1, currency_digits = 0, numeric_digits = 0, ...)

Arguments

data

a data frame to be displayed as a datatable

pct_digits

number of digits to display for percentage columns

currency_digits

number of digits to display for currency columns

numeric_digits

number of digits to display for numeric columns

...

additional arguments passed to guess_col_fmts()

Value

a datatable with formatted columns, filter at top, and no rownames