TDRcalibrate-accessors {diveMove}R Documentation

Methods to Show and Extract Basic Information from "TDRcalibrate" Objects

Description

Plot, print summaries and extract information from TDRcalibrate objects.

Usage

## S4 method for signature 'TDRcalibrate, missing':
getDAct(x)
## S4 method for signature 'TDRcalibrate, character':
getDAct(x, y)
## S4 method for signature 'TDRcalibrate, missing':
getDPhaseLab(x)
## S4 method for signature 'TDRcalibrate, numeric':
getDPhaseLab(x, diveNo)
## S4 method for signature 'TDRcalibrate, missing':
getGAct(x)
## S4 method for signature '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, respectively. In the case of getGAct it should be one of “phase.id”, “activity”, “begin”, or “end”, to extract the numeric phase ID for each observation, a factor indicating what major activity the observation corresponds to, or the beginning and end times of each phase in the record, respectively.

Value

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

Show Methods

show
signature(object="TDRcalibrate"): prints an informative summary of the data.

Extractor Methods

getDAct
signature(x="TDRcalibrate", y="missing"): this accesses the dive.activity slot of TDRcalibrate objects. Thus, it extracts a data frame with vectors identifying all readings to a particular dive and postdive number, and a factor identifying all readings to a particular activity.
getDAct
signature(x="TDRcalibrate", y = "character"): as the method for missing y, but selects a particular vector to extract. See TDRcalibrate for possible strings.
getDPhaseLab
signature(x="TDRcalibrate", diveNo = "missing"): extracts a factor identifying all readings to a particular dive phase. This accesses the dive.phases slot of TDRcalibrate objects, which is a factor.
getDPhaseLab
signature(x="TDRcalibrate", diveNo = "numeric"): as the method for missing y, but selects data from a particular dive number to extract.
getGAct
signature(x="TDRcalibrate", y="missing"): this accesses the gross.activity slot of TDRcalibrate objects, which is a named list. It extracts elements that divide the data into major wet and dry activities.
getGAct
signature(x="TDRcalibrate", y="character"): as the method for missing y, but extracts particular elements.
getTDR
signature(x="TDRcalibrate"): this accesses the tdr slot of TDRcalibrate objects, which is a TDR object.
getSpeedCoef
signature(x="TDRcalibrate"): this accesses the speed.calib.coefs slot of TDRcalibrate objects; the speed calibration coefficients.

Author(s)

Sebastian P. Luque spluque@gmail.com

Examples


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)


[Package diveMove version 0.9.5 Index]