apply family in r apply(), lapply(), sapply(), mapply() and tapply()
apply family in r contains apply(), lapply(), sapply(), mapply() and tapply().
One of the big questions is how and when to use these functions?
The answer is simple it depends on the structure of your data set and how you want the outcome.