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