activity2thresholds: Activity2thresholds

Description Usage Arguments Value Examples

View source: R/activity2thresholds.R

Description

activity2thresholds

Usage

1
2
3
activity2thresholds(activity, activity_gaps, act, act_ma, n_runs,
  window_width_around_day, n_thresholds, min_bin_width,
  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.

a

act_ma

a

n_runs

a

window_width_around_day

a

n_thresholds

a

min_bin_width

a

min_duration_active_state

a

plot

summary

Value

Data.table with the ...

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
activity_thresholds <- activity2thresholds(activity = activity_data,
                              activity_gaps = activity_data_gaps,
                              act = 'act_xy',
                              act_ma = 'act_xy_ma2',
                              n_runs = 1,
                              window_width_around_day = 3,
                              n_thresholds = c(25:35),
                              min_bin_width = 1,
                              min_duration_active_state = 10,
                              plot_summary = TRUE)

maxkroeschel/activitytools documentation built on Jan. 15, 2019, 5:32 a.m.