Skip to contents

Widths are based on dataframe or huxtable content ignoring rowspans and potential for wrapping.

Usage

fit_col_widths(table)

Arguments

table

a table to get column content widths for.

Value

a vector of column widths

Examples

library(tidyverse)
iris %>% fit_col_widths()
#> [1] 9.818359 9.000000 9.349609 8.531250 7.320312