Description Usage Arguments Details Examples
Several functions in the dsdive
package have a record of dive
stages as one of the function's arguments. However, this information is not
always available. For example, dive stage information is a latent variable
so is not included with observational data.
1 | stagevec(length.out, breaks)
|
length.out |
Length of vector to generate |
breaks |
Location of changepoints |
The stagevec
function makes it easy to generate a vector of dive
stages, like c(1,1,1,2,2,2,2,3,3)
. Users only need to provide a
target length length.out
and the indices at which the stage
changes breaks.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.