Learn R Programming

SMPracticals (version 1.4-3.1)

limits: Swedish Speed Limit Data

Description

The data are numbers of traffic accidents with personal injuries, reported to the police, on Swedish roads on 92 days in 1961 and 92 matching days in 1962. On some of these days a general speed limit of 90 or 100 km/hour was imposed.

Usage

data(limits)

Arguments

Format

A data frame with 92 observations on the following 5 variables.

day

A factor indicating the day, coded 1-92.

lim1

1 indicates a limit imposed in 1961, 0 not.

lim2

1 indicates a limit imposed in 1962, 0 not.

y1

Number of accidents on this day in 1961.

y2

Number of accidents on this day in 1962.

Examples

Run this code
data(limits)
## maybe str(limits) ; plot(limits) ...

Run the code above in your browser using DataLab