I'm trying to filter this code set
TITANIC %>% group_by(pclass, sex, survived) %>% summarise(avg = mean(age, na.rm = TRUE))
I want the table to only show me survivors. I can't seem to figure out how to filter data that's already had functions performed on it.