thresholds2states: Thresholds2states

View source: R/thresholds2states.R

thresholds2statesR Documentation

Thresholds2states

Description

Calculates active states based on a list of threshold values (return of function activity2thresholds that is grouped by a defined period with function aggregate_thresholds)

Usage

thresholds2states(parameters, activity, activity_gaps, thresholds,
  threshold_par)

Arguments

activity

A data.table with the activity data. The following columns should be present: 'animal_tag' and 'ts'.

activity_gaps

The data.table with the identified activity gaps.

threshold_parm

Value

Data.table with the ...

Examples

active_states_a <-  thresholds2states(activity = activity_data,
                                      activity_gaps = activity_data_gaps,
                                      thresholds = activity_thresholds_final,
                                      threshold_par = 'threshold_a')


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