step_metrics {sftrack}R Documentation

Calculates step metrics including distance, dt, dx, and dy.

Description

Calculates step metrics including distance, dt, dx, and dy.

Usage

step_metrics(sftraj)

Arguments

sftraj

an sftrack/sftraj object. sftrack objects will be converted to sftraj internally for calculation.

Examples

#'
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, ]

[Package sftrack version 0.5.4 Index]