From f93456a3da106a1ad43180fec03e7de0a6305a91 Mon Sep 17 00:00:00 2001 From: shleeneu <57425627+shleeneu@users.noreply.github.com> Date: Wed, 25 Oct 2023 22:10:35 -0400 Subject: [PATCH] Typo in clean_number() (#1580) |> as.numeric(x) shouldn't include x as x has been piped in. --- functions.qmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.qmd b/functions.qmd index b12de3a..f891ae9 100644 --- a/functions.qmd +++ b/functions.qmd @@ -225,7 +225,7 @@ clean_number <- function(x) { str_remove_all("%") |> str_remove_all(",") |> str_remove_all(fixed("$")) |> - as.numeric(x) + as.numeric() if_else(is_pct, num / 100, num) }