Typo in clean_number() (#1580)
|> as.numeric(x) shouldn't include x as x has been piped in.
This commit is contained in:
@@ -225,7 +225,7 @@ clean_number <- function(x) {
|
|||||||
str_remove_all("%") |>
|
str_remove_all("%") |>
|
||||||
str_remove_all(",") |>
|
str_remove_all(",") |>
|
||||||
str_remove_all(fixed("$")) |>
|
str_remove_all(fixed("$")) |>
|
||||||
as.numeric(x)
|
as.numeric()
|
||||||
if_else(is_pct, num / 100, num)
|
if_else(is_pct, num / 100, num)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user