sample.rate.spg: extracts the sample rate from a spectrogram

Description Usage Arguments Value Author(s) See Also Examples

View source: R/sample.rate.spg.R

Description

'nuff said.

Usage

1

Arguments

spg

a spectrogram object

Value

a single numeric value, the samples per second of the spectrogram's source file

Author(s)

Benjamin N. Taft [email protected]

See Also

spectrogram

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (spg) 
{
    ifelse(is(spg) == "spg", diff(attr(spg, "frequency")[1:2]) * 
        ncol(spg), NaN)
  }

landmarkacoustics/SoundPoints-R documentation built on Sept. 26, 2018, 9:08 a.m.