| TDRcalibrate-accessors {diveMove} | R Documentation |
Plot, print summaries and extract information from
TDRcalibrate objects.
## 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)
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. |
The extractor methods return an object of the same class as elements of the slot they extracted.
signature(object="TDRcalibrate"): prints an
informative summary of the data.
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.signature(x="TDRcalibrate", y = "character"):
as the method for missing y, but selects a particular
vector to extract. See TDRcalibrate for possible
strings.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.signature(x="TDRcalibrate", diveNo =
"numeric"): as the method for missing y, but selects
data from a particular dive number to extract.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.signature(x="TDRcalibrate", y="character"): as
the method for missing y, but extracts particular
elements.signature(x="TDRcalibrate"): this accesses the
tdr slot of TDRcalibrate objects, which is a
TDR object.signature(x="TDRcalibrate"): this
accesses the speed.calib.coefs slot of
TDRcalibrate objects; the speed calibration
coefficients.
Sebastian P. Luque spluque@gmail.com
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)