| sincos | R Documentation |
'sincos()' creates a full set of seasonal trigonometric regressors (cos/sin harmonics) for a seasonal frequency.
sincos(Y, n.ahead = 0, constant = FALSE)
Y |
A seasonal 'ts' object. |
n.ahead |
Integer. Extra observations to extend the sample. |
constant |
Logical. If 'TRUE', include an intercept column. |
A 'ts' matrix with trigonometric variables (and intercept if requested).
X <- sincos(AirPassengers, constant = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.