Learn R Programming

caschrono (version 2.4)

trafmensu: Monthly Air traffic at Toulouse Blagnac Airport for the period 1993-2007

Description

The file "/import/trafquoti.txt" contains daily Air traffic at Toulouse Blagnac Airport for the period 1993-2007

Arguments

Format

The series is imported first as a data.frame with function read.table, aggregated by month and then transformed into a ts object. Is is then converted in 1000 of people.

Examples

Run this code
data(trafmensu)
# The executed code is : 
## Not run: 
bb=read.table(file= system.file("/import/trafquoti.txt",package="caschrono"),
header=FALSE,quote="",sep="", colClasses=c('numeric','character'),
col.names =c('trafic','date'))
mois.an= as.numeric(paste(substr(bb$date,1,4), substr(bb$date,6,7), sep=""))
trafmens=aggregate(bb$traf, list(Mois.An = mois.an), sum)
trafmensu=ts(trafmens$x/1000,start= c(1993,1),frequency= 12)
## End(Not run)

Run the code above in your browser using DataLab