Simple question, what don't I understand about how case_when works. In the example below, I expected 4 levels in season but I get only two.
Thanks
data <- tibble(day = 1:366) %>%
mutate(
season = case_when(
day <= 60 | day > 335 ~ "winter",
day > 60 | day <= 151 ~ "spring",
day > 151 | day <= 242 ~ "summer",
day > 242 | day <= 335 ~ "autumn"
)
)