crop {tagtools}R Documentation

Interactive data cropping tool.

Description

This function plots the input data # and allows the user to select start and end times for cropping.

Usage

crop(X, sampling_rate = NULL, times = NULL, quiet = FALSE)

Arguments

X

A sensor list, vector or matrix. X can be regularly or irregularly sampled data in any frame and unit.

sampling_rate

The sampling rate of X in Hz. This is only needed if X is not a sensor list. If X is regularly sampled, sampling_rate is one number.

times

A vector of sampling times for X. This is only needed if X is not a sensor list and X is not regularly sampled.

quiet

If quiet is false, print to the screen

Details

Possible input combinations include: crop(X) if X is a sensor list, crop(X, sampling_rate) if X is a vector or matrix.

Value

A list with 3 elements:

Examples

data <- beaked_whale
Pc <- crop(data$P, quiet=TRUE) 
Ydata <- Pc$data
plot(-Ydata)

[Package tagtools version 0.1.0 Index]