cutws: Cut wave by samples

Description Usage Arguments Value Examples

View source: R/cutws.R

Description

Extract a section of a Wave object based on sample positions

Usage

1
cutws(wave, from, to, plot = FALSE)

Arguments

wave

A Wave object

from

First sample to return

to

Last sample to return

plot

If TRUE shows the cut region within the original waveform

Value

A Wave object

Examples

1
2
3
4
5
## Not run: 
cutws(sheep, 1, 20)
cutws(sheep, 1, 20, plot=TRUE)

## End(Not run)

sonicscrewdriver documentation built on May 2, 2021, 5:06 p.m.