View source: R/zerocrossings.R
zerocrossings | R Documentation |
This is a first attempt at a generic function to find zero crossings in arbitrary signals. The indices that are returned, are the samples right before the signal crosses zero, and if bounces are allowed, also the first sample of every bounce. Supposedly.
zerocrossings(v, bounces = FALSE)
v |
A numeric vector containing the signal. |
bounces |
A boolean: do bounces (a zero without sign change) count? |
?
A vector with indices into 'v' where the signal will cross zero.
?
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.