Description Usage Arguments Value See Also Examples
inludes the features for excel and clipboard export, hide and unhide (column visibility), reorder columns per drag and drop, navigate table with arrow keys and prefix/suffix directed rounding of numerical values.
count_/ _count will round to 0
p_val will round to Default: 2
perc_/ _perc will round to Default: 1
1 2 | f_datatable_universal(df, round_perc = 1, round_sign = 2,
count_cols_as_int = T, round_other_nums = NULL, page_length = 10)
|
df |
dataframe |
round_perc |
digits for percentages, Default: 1 |
round_sign |
digits for p_values, Default: 2 |
count_cols_as_int |
detect count columns, Default: T |
round_other_nums |
round other numerical(double) columns to that digit. Will not do anything if NULL, Default: NULL |
page_length |
integer Default page length of table, Default: 10 |
DT:datatable
str_detect
datatable
,formatPercentage
,formatSignif
,formatRound
1 2 3 4 5 6 | data_ls = f_clean_data(mtcars)
f_stat_group_counts_percentages(data_ls, 'cyl') %>%
f_datatable_universal()
f_stat_group_mean_medians(data_ls, 'cyl') %>%
f_datatable_universal(round_other_nums = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.