Learn R Programming

BSDA (version 1.01)

Domestic: Rates of domestic violence per 1,000 women by age groups

Description

Data for Exercise 1.20

Usage

Domestic

Arguments

Format

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

Rate

a numeric vector

Examples

Run this code
# 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