extractDive-methods {diveMove}R Documentation

Extract Dives from "TDR" or "TDRcalibrate" Objects

Description

Extract data corresponding to a particular dive(s), referred to by number.

Usage

## S4 method for signature 'TDR, numeric, numeric':
extractDive(obj, diveNo, id)
## S4 method for signature 'TDRcalibrate, numeric,
##   missing':
extractDive(obj, diveNo)

Arguments

obj TDR object.
diveNo Numeric vector or scalar with dive numbers to extract.
id Numeric vector of dive numbers from where diveNo should be chosen.

Value

An object of class TDR or TDRspeed.

Author(s)

Sebastian P. Luque spluque@gmail.com

Examples


data(divesTDR)
divesTDR
data(divesTDRcalibrate)
divesTDRcalibrate

diveX <- extractDive(divesTDR, 9, getDAct(divesTDRcalibrate, "dive.id"))
plotTDR(diveX, interact=FALSE)

diveX <- extractDive(divesTDRcalibrate, 5:10)
plotTDR(diveX, interact=FALSE)


[Package diveMove version 0.9.5 Index]