Skip to content

Commit

Permalink
Merge pull request #1709 from rstudio/refine-unit-conversion-data
Browse files Browse the repository at this point in the history
Refine unit conversion data
  • Loading branch information
rich-iannone authored Jun 15, 2024
2 parents 038a2f6 + 6483294 commit 27453f7
Show file tree
Hide file tree
Showing 6 changed files with 977 additions and 826 deletions.
8 changes: 4 additions & 4 deletions R/helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -583,16 +583,16 @@ currency <- function(
#' columns = land_area_km2,
#' decimals = 1,
#' scale_by = unit_conversion(
#' from = "area.square_kilometer",
#' to = "area.square_mile"
#' from = "area.square-kilometer",
#' to = "area.square-mile"
#' )
#' ) |>
#' fmt_number(
#' columns = density_2021,
#' decimals = 1,
#' scale_by = 1 / unit_conversion(
#' from = "area.square_kilometer",
#' to = "area.square_mile"
#' from = "area.square-kilometer",
#' to = "area.square-mile"
#' )
#' ) |>
#' cols_label(
Expand Down
Binary file modified R/sysdata.rda
Binary file not shown.
Loading

0 comments on commit 27453f7

Please sign in to comment.