extractDive,TDR,numeric,numeric-method {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 |
|
diveNo |
numeric vector or scalar with dive numbers to extract. Duplicates are ignored. |
id |
numeric vector or scalar of dive numbers from where
|
Value
An object of class TDR
or TDRspeed
.
Methods (by class)
-
obj = TDR,diveNo = numeric,id = numeric
: Extract data on TDR object -
obj = TDRcalibrate,diveNo = numeric,id = missing
: Extract data on TDRcalibrate object
Author(s)
Sebastian P. Luque spluque@gmail.com
Examples
## Too long for checks
## Continuing the Example from '?calibrateDepth':
utils::example("calibrateDepth", package="diveMove",
ask=FALSE, echo=FALSE, run.donttest=TRUE)
dcalib # the 'TDRcalibrate' that was created
diveX <- extractDive(divesTDR, 9, getDAct(dcalib, "dive.id"))
plotTDR(diveX)
diveX <- extractDive(dcalib, 5:10)
plotTDR(diveX)
[Package diveMove version 1.6.2 Index]