states2gps: Add state information to GPS positions

View source: R/states2gps.R

states2gpsR Documentation

Add state information to GPS positions

Description

states2gps classifies GPS positions into active and resting states.

Usage

states2gps(active_states, activity_gaps = NULL, gps)

Arguments

active_states

A data.table with the active states (return of function thresholds2states).

activity_gaps

A data.table with the activity gaps.

gps

A data.table with the GPS-positions of the animals.

Value

The data.table with the gps positions and the following columns <active> = specifies if the animal was active (1) or resting (0), <state_id> = ID, <active_duration> = duration, <active_act_mean> = mean and <active_act_var> = variance of the active state.


maxkroeschel/activitytools documentation built on July 31, 2023, 1:34 p.m.