AG_collapse: Collapse primary accelerometer data

Description Usage Arguments Examples

View source: R/Read_Raw_Utils.R

Description

Collapse primary accelerometer data

Usage

1
2
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)

Examples

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

AGread documentation built on Feb. 26, 2020, 5:12 p.m.