powered by
This function takes two spectra from seewave (or equivalent) and subtracts their values. The spectra must have the same bins.
subtractSpectra(s1, s2, coerceNegative = TRUE)
A spectrum of s1 - s2
First spectrum
Second spectrum
Sets any values below zero to zero in output.
if (FALSE) { subtractSpectra(spec1, spec2) subtractSpectra(spec1, spec2, coerceNegative=TRUE) }
Run the code above in your browser using DataLab