Skip to content

Instantly share code, notes, and snippets.

@mmajewsk
Created November 4, 2015 14:41
Show Gist options
  • Save mmajewsk/1a4337fff672a4ce58b8 to your computer and use it in GitHub Desktop.
Save mmajewsk/1a4337fff672a4ce58b8 to your computer and use it in GitHub Desktop.
lab4.r
trafficpermonth <- read.csv("C:/Users/hawker/Desktop/studia/szeregi/lab4/trafficpermonth.txt", sep="")
traffic <- ts(trafficpermonth["x"],start=c(1993,1),freq=12)
#1a
dec_traffic <- decompose(traffic)
plot(dec_traffic)
#1b
subset_traffic <- window(traffic, c(1996,1), c(2001,8))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment