-
Notifications
You must be signed in to change notification settings - Fork 418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
replace_na lacks tidyselect specification #912
Labels
Comments
Also related: #843 |
I think this is the same problem with the |
I think it's more that library(dplyr, warn.conflicts = FALSE)
df <- tibble(
x = c(NA, 1, 2),
y = c("a", NA, NA),
)
df %>% mutate(
across(is.numeric, coalesce, 0),
across(is.character, coalesce, "")
)
#> # A tibble: 3 x 2
#> x y
#> <dbl> <chr>
#> 1 0 "a"
#> 2 1 ""
#> 3 2 "" Created on 2020-04-01 by the reprex package (v0.3.0) |
hadley
added
documentation
pivoting ♻️
pivot rectangular data to different "shapes"
labels
Apr 1, 2020
Needs to wait until the next release of tidyr, since this release will be out before dplyr 1.0.0. |
hadley
added
missing values 💀
and removed
pivoting ♻️
pivot rectangular data to different "shapes"
labels
May 19, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently
repalce_na()
only use a list specification to replace missing values rather than the tidyselect style Things could get a little bit annoying when you have many columns containingNA
values andreplace_na(df, across(everthing, 0))
does not workCreated on 2020-03-14 by the reprex package (v0.3.0)
Session info
The text was updated successfully, but these errors were encountered: