R/zz-api-huxtable-utils.R
fit_col_widths.Rd
Widths are based on dataframe or huxtable content ignoring rowspans and potential for wrapping.
fit_col_widths(table)
a table to get column content widths for.
a vector of column widths
library(tidyverse) iris %>% fit_col_widths() #> [1] 8.837891 8.085938 8.419922 7.667969 6.419922