(Builds on: Manipulation basics)
Window functions are an important family of functions; they’re analogous to the summary functions that you already know about, but work with grouped mutate()s and filter()s, rather than grouped summarise()s.
mutate()
filter()
summarise()
Grouped mutates (and filters) [r4ds-5.7]
Window functions vignette