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

funs vs lists on scoped verbs #1

Open
dan-reznik opened this issue Feb 27, 2019 · 0 comments
Open

funs vs lists on scoped verbs #1

dan-reznik opened this issue Feb 27, 2019 · 0 comments

Comments

@dan-reznik
Copy link

per dplyr 0.8.x the "funs()" paramenter will be soft deprecated in favor of lists, so you may want, for longevity purposes, propose the new format on the *_{at,if,all} verbs

fns <- list(
  centered = mean,                # Function object
  scaled = ~ . - mean(.) / sd(.)  # Purrr-style lambda
)
mutate_if(iris, is.numeric, fns)

source: https://www.tidyverse.org/articles/2018/12/dplyr-0-8-0-release-candidate/

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

1 participant