sinewave | R Documentation |
Generate a discrete sine wave.
sinewave(m, n = m, d = 0)
m |
desired length of the generated series, specified as a positive integer. |
n |
rate, of the generated series, specified as a positive integer.
Default: |
d |
delay, specified as a positive integer. Default: 0. |
Sine wave, returned as a vector of length m
.
Friedrich Leisch.
Conversion to R by Geert van Boxtel, G.J.M.vanBoxtel@gmail.com.
plot(sinewave(100, 10), type = "l")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.