Uses the R package gt to create a pretty html table of NFL standings.
Arguments
- standings
 A table of NFL standings. Usually computed by
nfl_standings()- ...
 Currently unused. The function errors if objects are passed to the dots, i.e. when unnamed arguments are provided.
- grp_by
 Group the output table by Division (
"div"), Conference ("conf"), or complete league ("nfl")- order_by
 Order teams by division rank, conference rank, or draft rank
- reverse
 Teams are sorted by the argument
order_byin ascending order by default. Ifreverseis set toTRUE, order will be reversed.
Examples
# \donttest{
# Calculate standings
s <- nflreadr::load_schedules(2024) |>
  nflseedR::nfl_standings(ranks = "DRAFT")
#> ℹ 18:23:49 | Initiate Standings & Tiebreaking Data
#> ℹ 18:23:49 | Compute Division Ranks
#> ℹ 18:23:49 | Compute Conference Ranks
#> ℹ 18:23:49 | Compute Draft Order
# Create table
tbl1 <- nfl_standings_prettify(s, grp_by = "conf", order_by = "conf_rank")
tbl2 <- nfl_standings_prettify(s, grp_by = "nfl", order_by = "draft_rank")
# The output of tbl1 and tbl2 is given in the above images.
# }


