ldhmm.sma | R Documentation |
This utility calculates simple moving average, with option to backfill for NA.
ldhmm.sma(x, order, na.backfill = TRUE)
x |
numeric, the time series. |
order |
a positive integer to specify order of moving average. |
na.backfill |
logical, specify whether to backfill for NA. Default is |
numeric, simple moving average, same length as x.
Stephen H. Lihn
x <- 1:100
a <- ldhmm.sma(x, 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.