View source: R/step_calculation.R
step_metrics | R Documentation |
Calculates step metrics including distance, dt, dx, and dy.
step_metrics(sftraj)
sftraj |
an sftrack/sftraj object. sftrack objects will be converted to sftraj internally for calculation. |
#'
data("raccoon")
raccoon$timestamp <- as.POSIXct(raccoon$timestamp, "EST")
burstz <- list(id = raccoon$animal_id, month = as.POSIXlt(raccoon$timestamp)$mon)
# Input is a data.frame
my_sftraj <- as_sftraj(raccoon,
group = burstz, time = "timestamp",
error = NA, coords = c("longitude", "latitude")
)
step_metrics(my_sftraj)[1:10, ]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.