trim: Trim Time Series Data

View source: R/trim.R

trimR Documentation

Trim Time Series Data

Description

Removes time series data which lie beyond a specified time interval.

Usage

trim(x, ...)

## S3 method for class 'data.frame'
trim(x, range, ...)

## S3 method for class 'probe'
trim(x, range, start.time, stop.time, buffer = 0, ...)

Arguments

x

Data object containing time series data.

range

Two-element vector specifying the time range of data beyond which data frame records will be removed. NA or +/-Inf can be used to specify open bounds.

start.time, end.time

Time bounds beyind which probe data are to be truncated. If left unspecified, start and end times are determined from the project study data, such as set/tow data.

Methods (by class)

  • trim(data.frame): Removes time series data which lie beyond a specified time interval for a data.frame object.

  • trim(probe): Removes time series data which lie beyond start and end times for a probe object.


TobieSurette/gulf.data documentation built on Jan. 19, 2025, 7:50 p.m.