Inside a case_when, I am currently using:
rowSums(select(., starts_with('type')), na.rm = TRUE) > 0
to check whether those rows starting with 'type' are all NA or not.
Is there a way to check if there are any '1's present in that row instead? Returns true if there is at least one 1 in that row, and false if there doesn't exist any 1s.
Thanks!