states2gps: Add state information to GPS positions

Description Usage Arguments Value

View source: R/states2gps.R

Description

states2gps classifies GPS positions into active and resting states.

Usage

1
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 Jan. 15, 2019, 5:32 a.m.