https://github.com/cran/HLSM
Tip revision: 31ec11bc3c0ac504839d98ce0e6e8feb8951fbbe authored by Samrachana Adhikari on 18 June 2014, 00:00:00 UTC
version 0.1
version 0.1
Tip revision: 31ec11b
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)
}