powered by
Proportion of a wave with signal above the limit
dutyCycle(wave, limit = 0.1, output = "unit", normalise = TRUE)
A numerical value for the duty cycle between 0 and 1 (or 0 and 100% if percentage output).
A Wave object
Threshold above which to consider the signal
If "unit" the duty cycle will be in the range 0-1. For a percentage use "percent".
If TRUE the Wave is normalised using tuneR
wave <- tuneR::sine(2000) dc <- dutyCycle(wave) pc <- dutyCycle(wave, output="percent")
Run the code above in your browser using DataLab