View source: R/activity2thresholds.R
activity2thresholds | R Documentation |
activity2thresholds
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)
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 |
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 |
Data.table with the ...
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.