perIdVels: Speed and Heading Calculation based on 'swaRm' Package.

View source: R/velocities.R

perIdVelsR Documentation

Speed and Heading Calculation based on swaRm Package.

Description

This function calculates headings and speeds based on consecutive locations of 1 individual. Based on the heading and the linear_speed functions of swaRm.

Usage

perIdVels(per_id, geo)

Arguments

per_id

Time series of 1 individual's positional data.

geo

whether positions are geographic coordinates, default = FALSE.

Value

the input dataframe with a new speed and heading (rotational) column.

Author(s)

Marina Papadopoulou m.papadopoulou.rug@gmail.com


swaRmverse documentation built on Oct. 10, 2024, 5:08 p.m.