View source: R/vectorHarmonics.R
vectorHarmonics | R Documentation |
This is a wrapper function around harmonic
from the TSA package that constructs harmonic functions for fitting a
harmonic trend model.
vectorHarmonics(
x,
frq = 12L,
st = c(1982, 1),
nd = c(1986, 12),
m = 2L,
fun = stats::median
)
x |
Numeric. A vector containing time-series values. |
frq |
Integer, defaults to 12 (months). The number of observations per
unit of time. See |
st |
Numeric. A vector containing start year and month. |
nd |
Numeric. A vector containing end year and month. |
m |
Integer, defaults to 2. The number of pairs of harmonic functions to
be created. See |
fun |
Aggregating function to be applied to the fitted values. |
A numeric vector.
Tim Appelhans
harmonic
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.