lapply() applies a function to each element of a list and returns the results as a list.
R for Data Analytics MCQ - Advanced R Programming
sapply() works like lapply() but attempts to simplify the result to a vector or matrix.
apply() applies a function over specified rows, columns, or other margins of an array.
In apply(), margin 1 represents rows, so the mean is calculated for each row.

