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

Feature request: supporting dplyr::case_when() statements #12

Closed
IndrajeetPatil opened this issue Nov 8, 2021 · 1 comment
Closed

Comments

@IndrajeetPatil
Copy link

For example, the following code

  centrality <- case_when(
    type == "parametric" ~ "mean",
    type == "nonparametric" ~ "median",
    type == "robust" ~ "trimmed",
    type == "bayes" ~ "MAP"
  )

can be aligned to:

  centrality <- case_when(
    type == "parametric"     ~ "mean",
    type == "nonparametric"  ~ "median",
    type == "robust"         ~ "trimmed",
    type == "bayes"          ~ "MAP"
  )
@IndrajeetPatil IndrajeetPatil changed the title Feature request: supporting dplyr::case_when() statments` Feature request: supporting dplyr::case_when() statements Nov 9, 2021
@IndrajeetPatil
Copy link
Author

IndrajeetPatil commented Nov 11, 2021

On a second thought, these are not assignments, and so don't lie under the purview of this package.

{styler} already has an issue about this, and that's a more appropriate place for this functionality:
r-lib/styler#733

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