Learn R Programming

oce (version 0.1-76)

tdr.trim: Trim start/end portions of a TDR cast

Description

Trim start/end portions of a TDR cast.

Usage

tdr.trim(x, method="water",parameters=NULL, verbose=FALSE)

Arguments

x
A tdr object, e.g. as read by read.tdr.
method
Various methods exist, some of which use parameters: [object Object],[object Object],[object Object]
parameters
Depends on method; see above.
verbose
If set to TRUE, some debugging information is provided.

Value

  • An object of class "tdr", with data having been trimmed in some way.

Details

The "water" method is mainly for quick and dirty work. In many cases, the user will be working with several files, and so it will make sense to use the "time" method, to synchronize the time series. Normally, notes will have been taken in the field, so no guessing need be done about the time the instruments went in the water. In some cases, though, the time will have to be inferred from the data, and so it might make sense to start by trimming with the "water" method, after which summary.tdr is used to find the probably time when the instrument was put into the water.

See Also

The tdr object may be read with read.tdr. plot.tdr is very useful in providing guidance for trimming with tdr.trim.

Examples

Run this code
library(oce)
data(tdr)
plot(tdr)
tdr.trimmed <- tdr.trim(tdr)
plot(tdr.trimmed)

Run the code above in your browser using DataLab