fourier_series | R Documentation |
Returns a matrix containing terms from a Fourier series, up to order K
fourier_series(dates, period = NULL, K = NULL)
dates |
a Date vector representing the length of the series for which the fourier terms are required. |
period |
frequency of the underlying series, if NULL will try to infer it from the difference in the Date vector. |
K |
maximum order of the Fourier terms. |
A matrix of size N (length of dates) by 2*K.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.