mutate case_when and combined with or
I want to create a new variable based on two conditions, for which the second condition may take two alternative values. Is there a way in the case_when function to combine "and" with "or" in one line of code? Say this is the first dataframe: df1 <- data.frame(company = c("A", "B", "C", "D"), since =… Read More mutate case_when and combined with or