Grouping functions (tapply, by, aggregate) and the *apply family

Whenever I want to do something “map”py in R, I usually try to use a function in the apply family. However, I’ve never quite understood the differences between them — how {sapply, lapply, etc.} apply the function to the input/grouped input, what the output will look like, or even what the input can be — … Read more