Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. require(ggseas)
  2. Easter_Sales <- read.csv("Easter Sales.csv", header=TRUE)
  3. Easter_Sales$Date <- strptime(Easter_Sales$Date, "%m/%d/%Y")
  4. ggsdc(Easter_Sales, aes(x = Date, y = Daily_Sales), method = c("stl", "decompose", "seas"), s.window = 7, type = c("additive", "multiplicative"),index.ref = NULL, start = c(2012,1), frequency = 7, facet.titles = c("observed", "trend", "seasonal", "irregular"))
  5.  
  6. Warning message:
  7. In if (class(data[, xvar]) == "Date" & (is.null(frequency))) { :
  8. the condition has length > 1 and only the first element will be used
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement