powered by
Data for Exercise 1.20
Domestic
A data frame with 5 observations on the following 2 variables.
Age
a factor with levels 12-19 20-24 25-34 35-49 50-64
12-19
20-24
25-34
35-49
50-64
Rate
a numeric vector
# NOT RUN { str(Domestic) attach(Domestic) names(Rate) <- Age barplot(Rate,col="gold") pie(Rate) detach(Domestic) # }
Run the code above in your browser using DataLab