Skip to content
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

Substitute scoped functions #68

Open
raffaem opened this issue Sep 2, 2024 · 1 comment
Open

Substitute scoped functions #68

raffaem opened this issue Sep 2, 2024 · 1 comment

Comments

@raffaem
Copy link

raffaem commented Sep 2, 2024

Thanks for this uuseful package!

Don't you think we should replace scoped functions in the examples?

For instance:

# dplyr < 1.0
d <- filter_at(mtcars, vars(starts_with("d")), any_vars((. %% 2) == 0))

# 1.0 <= dplyr < 1.0.8
d <- filter(mtcars, rowSums(across(starts_with("d"), ~ .x %% 2 == 0))>0)

# dplyr >= 1.0.8
d <- filter(mtcars, if_any(starts_with("d"), ~ .x %% 2 == 0))
@elbersb
Copy link
Owner

elbersb commented Sep 2, 2024

sure, feel free to send a PR :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants