.ma <- function(x, n.p) {
if(is.null(x) || !is.numeric(n.p))
stop("something is wrong with the specified parameters")
n <- length(x)
out <- .C("ma", as.double(x), as.integer(n), as.integer(n.p), ans=double(n - 2*n.p), PACKAGE="stl2")
return(out$ans)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.