aggAcc: Aggregates multiple accelerometer summary files

View source: R/aggAcc.R

aggAccR Documentation

Aggregates multiple accelerometer summary files

Description

Aggregates multiple accelerometer summary files (e.g. summary files for multiple individuals) by day. This function can be used in sequence with readRawBatch and accBatch.

Usage

aggAcc(path)

Arguments

path

Path to accelerometer summary files created by function acc or accBatch

Value

A folder ‘aggregate’ is created within the specified path. In the folder, aggregate.Rdata file (object ‘aggregate’) consists of columns [ID, Date, SedentaryMinutes, wearTime, numberOfBoutsSed, mvpaMinutes, numberOfBoutsMVPA], where ID is the filename.

Author(s)

Jaejoon Song <jjsong2@mdanderson.org>

Examples

##
## Example
##
## Not run: 
mypath <- "C:/Accelerometry files/readfiles/summaryfiles"
aggAcc(mypath)

## End(Not run)


github-js/acc documentation built on Aug. 21, 2023, 5:40 p.m.