do_add_vels: Adding Velocity Information for Individuals in Parallel...

View source: R/velocities.R

do_add_velsR Documentation

Adding Velocity Information for Individuals in Parallel without Progress Updates

Description

This function calculates headings and speeds based on two location points and the time taken to travel between those points.

Usage

do_add_vels(per_id, geo = FALSE)

Arguments

per_id

Dataframe with the time series of individuals' positional data. Columns must include: t, id, x, y.

geo

Logical, 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.