fmt_percent()
Use a summarized version of the pizzaplace dataset to create a gt table. With fmt_percent(), we can format the frac_of_quota column to display values as percentages (to one decimal place).
pizzaplace
frac_of_quota
pizzaplace |> dplyr::mutate(month = as.numeric(substr(date, 6, 7))) |> dplyr::count(month, name = "pizzas_sold") |> dplyr::mutate(frac_of_quota = pizzas_sold / 4000) |> gt(rowname_col = "month") |> fmt_percent( columns = frac_of_quota, decimals = 1 )