| subtractSpectra | R Documentation | 
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)
| s1 | First spectrum | 
| s2 | Second spectrum | 
| coerceNegative | Sets any values below zero to zero in output. | 
A spectrum of s1 - s2
## Not run: 
subtractSpectra(spec1, spec2)
subtractSpectra(spec1, spec2, coerceNegative=TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.