Typo in clean_number() (#1580)

|> as.numeric(x) shouldn't include x as x has been piped in.
This commit is contained in:
shleeneu 2023-10-25 22:10:35 -04:00 committed by GitHub
parent 03808b44bb
commit f93456a3da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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