Learn R Programming

seewave (version 1.6.4)

cutspec: Cut a frequency spectrum

Description

This function can be used to select (cut) a specific part of a frequency spectrum.

Usage

cutspec(spec, f = NULL, flim, norm = FALSE, PMF = FALSE)

Arguments

Value

  • A new spectrum is returned. The class of the returned object is the one of the input object (spec)

See Also

spec, meanspec

Examples

Run this code
data(orni)
a<-meanspec(orni,f=22050,plot=FALSE)
b<-cutspec(a,flim=c(4,8))
# quick check with a plot
plot(b,type="l")
# effects on spectral entropy
sfm(a)
sfm(b)

Run the code above in your browser using DataLab