Learn R Programming

MSwM (version 1.5)

traffic: Traffic Deads in Spain

Description

The traffic data contains the daily number of deaths in traffic accidents in Spain during the year 2010, the average daily temperature and the daily sum of precipitations.

Usage

data(traffic)

Arguments

Format

A data frame with 210 observations on the following 2 variables.

Date

The date of each observation in format DD/MM/YYYY.

NDead

The number of daily traffic deaths.

Temp

The daily mean temperature in Spain (Celsius).

Prec

The daily mean precipitation in Spain (l/m2).

Examples

Run this code
# NOT RUN {
	data=data(traffic)
	ts.plot(traffic$NDead)
	
##See the vignette
#vignette("examples")
# }

Run the code above in your browser using DataLab