powered by
The divorce data frame has 25 rows and 6 columns.
divorce
data(divorce)
This data frame contains the following columns:
a factor
a numeric vector
data(divorce) apply(divorce[,2:6],2,sum) # percent divorced by age of marriage
Run the code above in your browser using DataLab