Is it possible to use a list of formatting functions or a vector of decimals in
What I have in mind is something like:
df %>% gt() %>% summary_rows( columns = vars(Amount, UnitCost, Count), fns = list(Total = ~sum(.), Mean = ~mean(.)), # current use: formatter = fmt_currency formatter = list(fmt_currency, fmt_number, fmt_number), # current use: decimals = 2 decimals = c(2, 2, 0) )
Currently I pipeline numerous calls to
summary_rows(), but the code would be more concise if a list and vector could be used within one call.
I would also like to thank the devs for making a great package based on a grammar of tables.