brf_formatted_cat_lvl: Format a categorical column levels summary with 'gt()'

View source: R/formatted.R

brf_formatted_cat_lvlR Documentation

Format a categorical column levels summary with 'gt()'

Description

Format a categorical column levels summary with 'gt()'

Usage

brf_formatted_cat_lvl(
  df,
  data_col,
  grouping_col = NULL,
  na.rm = F,
  decimals = 1
)

Arguments

df

a data frame

data_col

the unquoted name of the column to summarise

grouping_col

the unquoted name of the column to use for groupings

na.rm

should 'NA's be removed (default: FALSE)

Value

the summary as a 'kable table'


AdrienLeGuillou/briefr documentation built on July 25, 2022, 5:31 a.m.