f_datatable_universal: convert dataframe to DT:datatable inlcuding most usefull...

Description Usage Arguments Value See Also Examples

View source: R/f_datatable.R

Description

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.

Usage

1
2
f_datatable_universal(df, round_perc = 1, round_sign = 2,
  count_cols_as_int = T, round_other_nums = NULL, page_length = 10)

Arguments

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

Value

DT:datatable

See Also

str_detect datatable,formatPercentage,formatSignif,formatRound

Examples

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)

erblast/oetteR documentation built on Nov. 9, 2018, 7:51 p.m.