Learn R Programming

sonicscrewdriver (version 0.0.7)

cutws: Cut wave by samples

Description

Extract a section of a Wave object based on sample positions. This function will automatically detect if a Wave object is stereo.

Usage

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

Value

A Wave object

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

Examples

Run this code
if (FALSE) {
cutws(sheep, 1, 20)
cutws(sheep, 1, 20, plot=TRUE)
}

Run the code above in your browser using DataLab