Learn R Programming

BSDA (version 1.01)

Crime: Violent crime rates for the states in 1983 and 1993

Description

Data for Exercises 1.90, 2.32, 3.64, and 5.113

Usage

Crime

Arguments

Format

A data frame with 51 observations on the following 3 variables.

State

a factor with levels Alabama Alaska Arizona Arkansas California Colorado Connecticut DC Delaware Florida Georgia Hawaii Idaho Illinois Indiana Iowa Kansas Kentucky Louisiana Maine Maryland Massachusetts Michigan Minnesota Mississippi Missour Montana Nebraska Nevada New Hampshire New Jersey New Mexico New York North Carolina North Dakota Ohio Oklahoma Oregon Pennsylvania Rhode Island South Carolina South Dakota Tennessee Texas Utah Vermont Virginia Washington West Virginia Wisconsin Wyoming

X1983

a numeric vector

X1993

a numeric vector

Examples

Run this code
# NOT RUN {
str(Crime)
attach(Crime)
boxplot(X1983,X1993,names=c("1983","1993"),xlab="Year",
ylab="Crime Rate per 100,000 Inhabitants",main="Problem 1.90")
plot(X1983,X1993)
detach(Crime)
# }

Run the code above in your browser using DataLab