powered by
This function takes two spectra from seewave (or equivalent) and adds their values. The spectra must have the same bins.
addSpectra(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) }
Run the code above in your browser using DataLab