https://github.com/cran/HLSM
Tip revision: dcd2fa6f1994b6500075e0b6f0310a45f112b45f authored by Samrachana Adhikari on 18 June 2014, 00:00:00 UTC
version 0.2
version 0.2
Tip revision: dcd2fa6
runningmeans.R
###Running Means####
runningmeans <- function(x, start){
n.iter=length(x)
val=sapply(start:n.iter, function(ii) mean(x[start:ii]))
return(val)
}