We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Similar to the previous issue:
# Start with the linelist: linelist <- linelist %>% # Create ate_anything column: mutate(ate_anything = case_when( # ate_anything = FALSE if none of the exposure columns are TRUE: if_all(.cols = all_of(exposure_cols), .fns = ~ !. %in% c(TRUE)) ~ FALSE, # ate_anything = TRUE if any of the exposure columns are TRUE: if_any(.cols = any_of(exposure_cols), .fns = ~ . == TRUE) ~ TRUE ))
Alternative
# Start with the linelist: linelist <- linelist %>% # Create ate_anything column: mutate(ate_anything = case_when( # ate_anything = TRUE if any of the exposure columns are TRUE: if_any(.cols = any_of(exposure_cols), .fns = ~ . == TRUE) ~ TRUE, TRUE ~ FALSE ))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Similar to the previous issue:
Alternative
The text was updated successfully, but these errors were encountered: