本文介绍了计算移动平均的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用R来计算矩阵中一系列值的移动平均值.普通的R邮件列表搜索并不是很有帮助. R中似乎没有内置函数移动平均线.有任何包装提供吗?还是我需要自己写?
I'm trying to use R to calculate the moving average over a series of values in a matrix. The normal R mailing list search hasn't been very helpful though. There doesn't seem to be a built-in function in R will allow me to calculate moving averages. Do any packages provide one? Or do I need to write my own?
推荐答案