cutWave {monitoR}R Documentation

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)

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.

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.

Value

An object of class Wave.

Author(s)

Sasha D. Hafner

Examples

data(survey)

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

[Package monitoR version 1.0.7 Index]