Plain old apply() runs a function on every row or every column of a 2-dimensional matrix or data frame. You specify whether to apply by rows (argument 1) or by columns (argument 2). Other functions like lapply() or tapply() deal with different input/output data types.
Collection
[
|
...
]