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)
The apply function call a function over a data structure:
apply(USArrests,2,mean)
apply(USArrests,2,var)