Skip to content

funs vs lists on scoped verbs #1

@dan-reznik

Description

@dan-reznik

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions