sine: Create sine wave

Description Usage Arguments

View source: R/sine.R

Description

Provides a vector with the ouput from a sin() function. This function is nothng more than a wrapper for said function. It takes a range of the sine wave from a specific data point to a specific data point (e.g. -pi to pi).
Another input is the length of the output vector. Useful for cases where you want to perform a sine transformation on your data.

Usage

1
2
v <- sine(from = -2, to = 2*pi, length = 1000)
v <- sine(-pi, 20, 1e5)

Arguments

from

single value indicated from where the vector should start

to

single value indicated from where the vector should end

length

length of the output vector


norment/normentR documentation built on Nov. 11, 2020, 2:16 a.m.