Skip to content

Commit

Permalink
naming changed to dt because it's a data.table
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcaseb committed Jan 24, 2024
1 parent ae87ba9 commit 67a6407
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions R/nfl_team_tiers.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@
#' )[,tier_rank := sample(1:.N, .N), by = "tier_no"]
#'
#' # Plot team tiers
#' nfl_team_tiers(df)
#' nfl_team_tiers(dt)
#'
#' # Create a combined tier which is useful for tiers with lots of teams that
#' # should be split up in two or more rows. This is done by setting an empty
#' # string for the tier 5 description and removing the tier separation line
#' # below tier number 4.
#' # This example also shows how to turn off the subtitle and add a caption
#' nfl_team_tiers(df,
#' nfl_team_tiers(dt,
#' subtitle = NULL,
#' caption = "This is the caption",
#' tier_desc = c("1" = "Super Bowl",
Expand All @@ -69,7 +69,7 @@
#' # For the development of the tiers, it can be useful to turn off logo image
#' # rendering as this can take quite a long time. By setting `devel = TRUE`, the
#' # logo images are replaced by team abbreviations which is much faster
#' nfl_team_tiers(df,
#' nfl_team_tiers(dt,
#' tier_desc = c("1" = "Super Bowl",
#' "2" = "Very Good",
#' "3" = "",
Expand Down
6 changes: 3 additions & 3 deletions man/nfl_team_tiers.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/testthat/test-nfl_team_tiers.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ test_that("team tiers work", {
)[,tier_rank := sample(1:.N, .N), by = "tier_no"]

# Check dev mode only because logos are tested elsewhere
p1 <- nfl_team_tiers(df,
p1 <- nfl_team_tiers(dt,
tier_desc = c("1" = "Super Bowl",
"2" = "Very Good",
"3" = "",
Expand Down

0 comments on commit 67a6407

Please sign in to comment.