Description Usage Arguments Examples
Apply a moving average procedure on time series
1 | ma(x, window.length)
|
x |
any object containing the time series (es. data.frame, ts) |
window.length |
length of the windows on which averages are computed |
1 2 3 4 5 6 | infile <- "test.data"
window.ll <- 20
x <- read.table(infile)
x <- ma(x, window.ll)
write.table(x,file=paste("ma",infile,sep="_"), quote=F, row.names=F, col.names=F)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.