getDT: Calculates the time between between the current location and...

View source: R/General_Functions.R

getDTR Documentation

Calculates the time between between the current location and the previous location in a track.

Description

Calculates the time between between the current location and the previous location in a track.

Usage

getDT(time, units = "hours")

Arguments

time

A vector of time values in POSIXct format.

units

The units of time for the output (eg. "days","hours","min","sec")

Value

A numeric vector of values in the requested time unit, giving the time between each location in the track and the previous location.

Warning

This function assumes that time values are in chronological order and all values are from a single individual. Make sure that your data are ordered, and use a for loop or some other method to apply this to multiple tracks


allisonglider/seabiRds documentation built on Feb. 14, 2025, 7:37 a.m.