R - Apply a function over a data structure

Card Puncher Data Processing

R - Apply a function over a data structure

About

The apply function call a function over a data structure:

Examples

Mean

Mean

apply(USArrests,2,mean)

Variance

R - Variance

apply(USArrests,2,var)







Share this page:
Follow us:
Task Runner