The apply function call a function over a data structure:
R - Mean
apply(USArrests,2,mean)
R - Variance
apply(USArrests,2,var)