Typo in clean_number() (#1580)
|> as.numeric(x) shouldn't include x as x has been piped in.
This commit is contained in:
parent
03808b44bb
commit
f93456a3da
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue