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

Functionalise long mutate(x = x %>% case_when(...) %>% factor(...)) calls #54

Open
rvanmazijk opened this issue Aug 30, 2020 · 0 comments
Assignees
Labels
reproducibility Includes code or methods' transparency and alignment with open science principles

Comments

@rvanmazijk
Copy link
Collaborator

I.e.:

... %>%
  mutate(x =  x %>%
    case_when(
      ... ~ ...[[1]],
      ... ~ ...[[2]],
      ... ~ ...[[3]]
    ) %>%
    factor(levels = c(
      ...[[1]],
      ...[[2]],
      ...[[3]]
    ))
  ) %>%
  ...
@rvanmazijk rvanmazijk changed the title Functionalise long mutate(x = x %>% case_when(...) %>% factor(...)) Functionalise long mutate(x = x %>% case_when(...) %>% factor(...)) calls Aug 30, 2020
@rvanmazijk rvanmazijk added the reproducibility Includes code or methods' transparency and alignment with open science principles label Aug 30, 2020
@rvanmazijk rvanmazijk self-assigned this Aug 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
reproducibility Includes code or methods' transparency and alignment with open science principles
Projects
None yet
Development

No branches or pull requests

1 participant