A Simple Guide to Understand the apply() Functions in R