fx_count: Compute Fx metrics

View source: R/math.R

fx_countR Documentation

Compute Fx metrics

Description

Compute Fx metrics

Usage

fx_count(
  bouts,
  time_col = "TimeUTC",
  duration_col = "Duration",
  intensity_col = "AGSAMean",
  intensity_threshold = 0.0625,
  active_duration = 3600
)

Arguments

bouts

A bouts data frame sorted by time containing at minimum the time and intensity columns.

time_col

Name of the column containing Unix UTC timestamps. Defaults to "TimeUTC".

duration_col

Name of the column containing bout durations. Defaults to "Duration".

intensity_col

Name of the column containing bout intensity values. Defaults to "AGSAMean".

intensity_threshold

Threshold for active classification in g. Defaults to 0.0625 (62.5mg).

active_duration

Duration of active time in seconds. Default is 3600 seconds (60 minutes).

Details

Calculates frequency of bouts for each x duration window.

Value

A list containing the maximum and minimum bout counts and their corresponding start times for the supplied bouts data at a given window.


GENEAcore documentation built on Oct. 22, 2026, 5:09 p.m.