get.time.res: Computes the time resolution of a spectrogram

Description Usage Arguments Value Author(s) See Also Examples

View source: R/get.time.res.R

Description

finds the difference between the first two elements of the time attribute

Usage

1

Arguments

spg

a spectrogram object

Value

a numeric value

Author(s)

Benjamin N. Taft [email protected]

See Also

spectrogram

Examples

1
2
3
4
5
6
7
8
9
##---- 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) 
{
    return(diff(attr(spg, "time")[1:2]))
  }

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