thresholds2states: Thresholds2states

Description Usage Arguments Value Examples

View source: R/thresholds2states.R

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

1
thresholds2states(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

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