R中具有10分钟频率的时间序列

R中具有10分钟频率的时间序列

本文介绍了R中具有10分钟频率的时间序列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的数据是最近26天每10分钟间隔一次应用程序的内存消耗.我的开始日期是2013年10月6日,结束日期是2013年11月2日.起来.现在我试图创建一个时间序列,类似于my_ts<-ts(mydata[3],start=c(2013,10),frequency=10)

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 .

推荐答案

在R中,frequency实际上是指季节性的时期.即frequency =每个季节的观察频率.在您的情况下,季节"大概是一天.所以你想要

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)

这篇关于R中具有10分钟频率的时间序列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 20:23