powered by
sincos creates an full set of trigonometric variables.
sincos
sincos(Y, n.ahead = 0, constant = FALSE)
A matrix of trigonometric variables.
an object of class ts used to determine the sample period and frequency.
ts
number of additional observations to extend the sample period.
logical indicator to include a column of ones.
Y <- AirPassengers P58 <- sincos(Y)
Run the code above in your browser using DataLab