AG_collapse: Collapse primary accelerometer data

View source: R/Read_Raw_Utils.R

AG_collapseR Documentation

Collapse primary accelerometer data

Description

Collapse primary accelerometer data

Usage

AG_collapse(
  AG,
  output_window_secs = 1,
  samp_freq,
  method = "default",
  ENMO2 = NULL
)

Arguments

AG

a dataframe of raw primary accelerometer data

output_window_secs

the desired epoch length; defaults to one second

samp_freq

The sampling frequency

method

character scalar giving the method to use for calculating ENMO, either "default" or "block"

ENMO2

vector of leftover raw values from the previous block (if applicable)

Value

A data frame of collapsed acceleration summaries

Examples

data(raw_to_collapse)
collapsed <- AG_collapse(raw_to_collapse, 1, 80)
head(collapsed)


AGread documentation built on Sept. 13, 2022, 5:06 p.m.