powered by
Compute the sin and cos of x.
sincos(x, period = 168/2/pi)
a vector
a scalar, which x is scaled by
a matrix containing a _sin and _cos column
https://stackoverflow.com/questions/51874305/tuple-variable-in-r-regression-model/54393605#54393605
# NOT RUN { data(sunspots) lm(sunspots~sincos(time(sunspots), 5/pi)) # }
Run the code above in your browser using DataLab