table(mtcars$cyl)
4 6 8
11 7 14
Suppose I wanted to filter low frequency terms, in this case less than 10. Is there an elegant dplyr esque way to do this?
mtcars %>% group_by(cyl) %>% filter([???])
The result would be a data frame with 4 and 8 cyl only, since they both occur 10 or more times.