TDR-class {diveMove} | R Documentation |
These classes store information gathered by time-depth recorders.
## S4 method for signature 'TDR, numeric, numeric': extractDive(obj, diveNo, id)
obj |
"TDR" object. |
diveNo |
numeric vector or scalar with dive numbers to extract. |
id |
numeric vector of dive numbers from where diveNo
should be chosen. |
Since the data to store in objects of these clases usually come
from a file, the easiest way to construct such objects is with the
function readTDR
to retrieve all the necessary information.
The methods listed above can thus be used to access all slots.
Objects can be created by calls of the
form new("TDR", ...)
and new("TDRspeed", ...)
.
TDR
objects contain concurrent time and depth readings, as well
as a string indicating the file the data originates from, and a number
indicating the sampling interval for these data. TDRspeed
extends TDR
objects containing additional concurrent speed
readings.
In class TDR:
file
:"character"
, string
indicating the file where the data comes from.dtime
:"numeric"
, sampling
interval in seconds.time
:"POSIXct"
, time stamp for
every reading.depth
:"numeric"
, depth (m)
readings.
Class TDRspeed adds:
speed
:"numeric"
speed (m/s)
readings.
signature(x="TDR")
: Coerce object to
data.frame.signature(x="TDRspeed")
: Coerce object
to data.frame.signature(from="TDR", to="data.frame")
: Coerce
object to data.frame.signature(from="TDRspeed", to="data.frame")
:
Coerce object to data.frame.signature(x = "TDR")
: depth slot accessor.signature(x = "TDR")
: sampling interval
accessor.signature(obj = "TDR", diveNo = "numeric",
id = "numeric")
: extract particular dives.signature(x="TDR")
: source file name
accessor.signature(x = "TDR", y = "missing")
: interactive
graphical display of the data, with zooming and panning
capabilities.signature(x = "TDRspeed", y = "missing")
: As the
TDR method, but also plots the speed slot.signature(object = "TDR")
: print an informative
summary of the data.signature(x = "TDR")
: time slot accessor.signature(x = "TDRspeed")
: speed accessor for
TDRspeed
objects.
Sebastian P. Luque spluque@gmail.com