activity2thresholds: Activity2thresholds

View source: R/activity2thresholds.R

activity2thresholdsR Documentation

Activity2thresholds

Description

activity2thresholds

Usage

activity2thresholds(activity, activity_gaps, act, act_ma, reg_minutes,
  n_runs, window_width_around_day, n_thresholds, resting_range_limit,
  threshold_range_limit, min_duration_active_state, plot_summary)

Arguments

activity

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

activity_gaps

A data.table with the identified gaps in the activity data (return of function identify_activity_gaps.

act

a

act_ma

a

n_runs

a

window_width_around_day

a

n_thresholds

a

resting_range_limit

a

threshold_range_limit

a

min_duration_active_state

a

plot_summary

Value

Data.table with the ...

Examples

activity_thresholds <- activity2thresholds(activity = activity_data,
                              activity_gaps = activity_data_gaps,
                              act = 'act_xy',
                              act_ma = 'act_xy_ma2',
                              reg_minutes = 5,
                              n_runs = 1,
                              window_width_around_day = 3,
                              n_thresholds = c(25:35),
                              resting_range_limit = 0.2,
                              threshold_range_limit = 0.8,
                              min_duration_active_state = 2,
                              plot_summary = TRUE)


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