time series with 10 min frequency in R

北慕城南 提交于 2019-12-06 05:16:50

问题


My data is memory consumption of an application for every 10 minute interval for the last 26 days.My start date is Oct 6th 2013 and end date is Novemeber 2nd 2013.I've read the data in to a time frame and cleaned it up. Now am trying to create a time series , something along the lines of my_ts<-ts(mydata[3],start=c(2013,10),frequency=10)

Am sure this not correct as the frequency , can someone point me in the right direction so I can plot the time series .


回答1:


In R, frequency actually means the period of the seasonality. i.e., frequency = frequency of observations per season. In your case, the "season" is presumably one day. So you want

ts(mydata[3],start=c(2013,10),frequency=24*60/10)


来源:https://stackoverflow.com/questions/19747749/time-series-with-10-min-frequency-in-r

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!