I have a dataset that has a variable called month, which each month as a character. Is there a way with dplyr to combine some months to create a season variable? I have trie
When there are multiple key/value, we can do a join with a key/val dataset
keyval <- data.frame(month = month.abb, season = rep(c("Winter", "Spring", "Summer", "Fall"), each = 3), stringsAsFactors = FALSE) left_join(data, keyval)