Learn R Programming

monitoR (version 1.2)

cutWave: Extract Shorter Wave Objects from other Wave Objects

Description

Extract shorter Wave objects from other Wave objects. Extracted wave object will be between the from and to boundaries.

Usage

cutWave(wave, from = NULL, to = NULL)

Value

An object of class Wave.

Arguments

wave

Object of class Wave.

from

Start extracted segment from this point, in seconds from beginning of Wave object.

to

End of extracted segment, in seconds from beginning of Wave object.

Author

Sasha D. Hafner

Details

This function is a simplified version of cutw from the seewave package. Its original name in the monitoR was the same (cutw), but has since been changed to avoid conflict for those who use both packages.

Examples

Run this code
data(survey)

event1 <- cutWave(wave = survey, from = 1.5, to = 4.75)

Run the code above in your browser using DataLab