R 3.2 – The apply() Family of Functions



When data are organized in a matrix or data frame, the apply() function can be used to calculate summaries (or apply a more complex function) across either the …

source