addSpectra: Add two spectra from seewave

View source: R/spectraMaths.R

addSpectraR Documentation

Add two spectra from seewave

Description

This function takes two spectra from seewave (or equivalent) and adds their values. The spectra must have the same bins.

Usage

addSpectra(s1, s2, coerceNegative = TRUE)

Arguments

s1

First spectrum

s2

Second spectrum

coerceNegative

Sets any values below zero to zero in output.

Value

A spectrum of s1+s2

Examples

## Not run: 
subtractSpectra(spec1, spec2)

## End(Not run)


sonicscrewdriver documentation built on May 29, 2024, 3:39 a.m.