RBSM | R Documentation |
Function to retrieve latent variables of the BSM (values that were generated onboard the tag but has not been transmitted)
RBSM(dive, retrieve = "order")
dive |
A dive profile summarized by a Broken Stick Algorithm and transmitted via ARGOS (SMRU format) |
retrieve |
character determining what we want to have
returned of:
|
This function is based on the recursively application of linear models through each summarized dive to get the order in which the inflection points have been selected by the BSM. This function,if requested, will return the smallest residual that may or may not be the residual of the last point. It usually is, but not always. This functions works at dive level, and asume some naming conventions from the SMRU generated files. The column names requested are: D1,D2,D3,D4,T1,T2,T3,T4 and DIVE_DUR. This funcion is not intended to be used directly by an end user, but if needed to be applied directly trough a data.frame object, function RBSM should be called via apply if want to be applied to a full data.frame.
the exact content will depended on the flag used with retrieve (see above). The returned values are stored in a vector. If more than one outcome is requested via both, minresid will be of class character
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.