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) }