A Guide to apply(), lapply(), sapply(), and tapply() in R