extractDive-methods: Extract Dives from "TDR" or "TDRcalibrate" Objects

Description Usage Arguments Value Author(s) Examples

Description

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

Usage

1
2
3
4
## 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. Duplicates are ignored.

id

numeric vector or scalar 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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Too long for checks
## Continuing the Example from '?calibrateDepth':
utils::example("calibrateDepth", package="diveMove",
               ask=FALSE, echo=FALSE)
dcalib		# the 'TDRcalibrate' that was created

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

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

diveMove documentation built on May 29, 2017, 4:19 p.m.

Search within the diveMove package
Search all R packages, documentation and source code