Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

sincos

sin/cos pairs for modeling


Description

Compute the sin and cos of x.

Usage

sincos(x, period = 168/2/pi)

Arguments

x

a vector

period

a scalar, which x is scaled by

Value

a matrix containing a _sin and _cos column

Author(s)

References

Examples

data(sunspots)
lm(sunspots~sincos(time(sunspots), 5/pi))

stackoverflow

Stack Overflow's Greatest Hits

v0.7.0
CC BY-SA 4.0
Authors
Neal Fultz <nfultz@gmail.com> and the StackOverflow.com community
Initial release
2020-01-03

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.