createOctaveLevel {PAMscapes}R Documentation

Create Octave Level Measurements

Description

Creates octave or third octave level measurements from finer resolution soundscape metrics, like Power Spectral Density (PSD) or Hybrid Millidecade (HMD) measures

Usage

createOctaveLevel(
  x,
  type = c("ol", "tol"),
  freqRange = NULL,
  method = c("sum", "mean")
)

Arguments

x

dataframe of soundscape metrics

type

either 'ol' to create octave level or 'tol' to create third octave level measures

freqRange

a vector of the minimum and maximum center frequencies (Hz) desired for the output. If NULL, full available range of frequencies will be used.

method

the summary method to apply to soundscape metrics within the octave band, one of 'sum' or 'mean'. The default 'sum' should be used in almost all cases.

Value

a dataframe with summarised octave level band measurements

Author(s)

Taiki Sakai taiki.sakai@noaa.gov

Examples

psd <- checkSoundscapeInput(system.file('extdata/PSDSmall.csv', package='PAMscapes'))
str(psd)
tol <- createOctaveLevel(psd, type='tol')
str(tol)
ol <- createOctaveLevel(tol, type='ol')
str(ol)


[Package PAMscapes version 0.6.0 Index]