R - Apply a function over a data structure
Table of Contents
About
The apply function call a function over a data structure:
- lapply do it over a list
- …
Articles Related
Examples
Mean
apply(USArrests,2,mean)
Variance
apply(USArrests,2,var)