Description Usage Arguments Value
View source: R/segmentation_helper_functions.R
An internal function that calculates step lengths, turning angles, and time steps for a given animal ID.
1 | prep_data_internal(dat, coord.names)
|
dat |
A data frame that contains the columns associated with the x and y
coordinates as well as the date-time. For easier interpretation of the
model results, it is recommended that coordinates be stored after UTM
projection (meters) as opposed to unprojected in decimal degrees (map
units). Date-time should be of class |
coord.names |
character. A vector of the column names under which the coordinates are stored. The name for the x coordinate should be listed first and the name for the y coordinate second. |
A data frame where all original data are returned and new columns are
added for step length (step
), turning angle (angle
),
net-squared displacement (NSD
), and time step (dt
).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.