[英]Creating Time-Series with days period in R
I have trouble when using ts() function.使用 ts() 函数时遇到问题。 How can I create a time-series with days period?如何创建一个包含天数的时间序列? Can you examine to me?你能帮我考查吗? Thank you very much!!!非常感谢!!!
Use ts(ts_data, frequency = 365)
for daily data with annual seasonality and ts(ts_data, frequency = 7)
for daily data with weekly seasonality.将ts(ts_data, frequency = 365)
用于具有年度季节性的每日数据,将ts(ts_data, frequency = 7)
用于具有每周季节性的每日数据。 If there is no seasonality, if your data is from daily, only ts(ts_data)
will be enough.如果没有季节性,如果您的数据来自每日,则只有ts(ts_data)
就足够了。
Set frequency 1 for year, 4 for quarterly, 12 for monthly and 52 for weekly.设置频率 1 为年,4 为季度,12 为每月,52 为每周。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.