Skip to content

Commit 34d8563

Browse files
MoohanCopilot
andcommitted
Update Master RMarkdown Document & Render Code/Global Script.R
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent da6a1f8 commit 34d8563

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Master RMarkdown Document & Render Code/Global Script.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ palette <- phsstyles::phs_colours(c(
4545
# Then adds a comma for numbers over 1000 (becomes "1,000")
4646
format_number_for_text <- function(number) {
4747
case_when(
48-
abs(number) < 1L ~ round_half_up(number, 2),
49-
abs(number) < 100L ~ round_half_up(number, 1),
48+
abs(number) < 1 ~ round_half_up(number, 2),
49+
abs(number) < 100 ~ round_half_up(number, 1),
5050
.default = round_half_up(number, 0)
5151
) |>
5252
format(big.mark = ",")

0 commit comments

Comments
 (0)