| TDR-accessors {diveMove} | R Documentation |
Basic methods for manipulating objects of class
TDR.
signature(object="TDR"): print an informative
summary of the data.
signature(x="TDR"): Coerce object to
data.frame. This method returns a data frame, with attributes
“file” and “dtime” indicating the source file and
the interval between samples.
signature(x="TDRspeed"): Coerce object
to data.frame. Returns an object as for TDR
objects.
signature(x="TDR"): Coerce object to
TDRspeed class.
signature(x="TDR", i="numeric", j="missing",
drop="missing"): Subset a TDR object; these objects can be
subsetted on a single index i. Selects given rows from
object.
signature(x = "TDR"): depth slot accessor.
signature(x="TDR", y="missing"):
concurrentData slot accessor.
signature(x="TDR", y="character"): access
component named y in x.
signature(x = "TDR"): sampling interval
accessor.
signature(x="TDR"): source file name
accessor.
signature(x = "TDR"): time slot accessor.
signature(x = "TDRspeed"): speed accessor for
TDRspeed objects.
signature(x="TDR"): depth replacement.
signature(x="TDR"): speed replacement.
signature(x="TDR"): concurrent data frame
replacement.
Sebastian P. Luque spluque@gmail.com
data(divesTDR) ## Retrieve the name of the source file getFileName(divesTDR) ## Retrieve concurrent temperature measurements temp <- getCCData(divesTDR, "temperature"); head(temp) temp <- getCCData(divesTDR); head(temp) ## Coerce to a data frame dives.df <- as.data.frame(divesTDR) head(dives.df) ## Replace speed measurements newspeed <- getSpeed(divesTDR) + 2 speed(divesTDR) <- newspeed