User Tools

Site Tools


bq_data_to_time_series_-_change_column_names

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

bq_data_to_time_series_-_change_column_names [2015/12/16 13:22] (current)
vincenzo created
Line 1: Line 1:
 +<code c>
 +data_plot$log_date <- as.Date(data$log_date,​ format="​%Y%m%d"​)
  
 +data_purchase <- as.data.frame(data_purchase)
 +ts <- ts(data_purchase$count,​ frequency = 7)
 +m <- HoltWinters(ts,​seasonal = "​mult"​)
 +plot(m)
 +plot(ts)
 +plot(fitted(m))
 +
 +m_predict <- predict(m, n = 10)
 +Start = c(4, 5) 
 +End = c(5, 7) 
 +Frequency = 7 
 +
 +</​code>​
bq_data_to_time_series_-_change_column_names.txt ยท Last modified: 2015/12/16 13:22 by vincenzo