Learn R Programming

diveMove (version 1.0)

TDRcalibrate-accessors: Methods to Show and Extract Basic Information from "TDRcalibrate" Objects

Description

Plot, print summaries and extract information from TDRcalibrate objects.

Usage

## S3 method for class 'TDRcalibrate,missing':
getDAct(x)
## S3 method for class 'TDRcalibrate,character':
getDAct(x, y)
## S3 method for class 'TDRcalibrate,missing':
getDPhaseLab(x)
## S3 method for class 'TDRcalibrate,numeric':
getDPhaseLab(x, diveNo)
## S3 method for class 'TDRcalibrate,missing':
getGAct(x)
## S3 method for class 'TDRcalibrate,character':
getGAct(x, y)

Arguments

x
TDRcalibrate object.
diveNo
numeric vector with dive numbers to plot.
y
string; dive.id, dive.activity, or postdive.id in the case of getDAct, to extract the numeric dive ID, the factor identifying dive phases in each dive, or the numeric postdive ID,

Value

  • The extractor methods return an object of the same class as elements of the slot they extracted.

Examples

Run this code
data(divesTDRcalibrate)

divesTDRcalibrate		# show

## Beginning times of each successive phase in record
getGAct(divesTDRcalibrate, "begin")

## Factor of dive IDs
dids <- getDAct(divesTDRcalibrate, "dive.id")
table(dids[dids > 0])		# samples per dive

## Factor of dive phases for given dive
getDPhaseLab(divesTDRcalibrate, 19)

Run the code above in your browser using DataLab