Learn R Programming

acc (version 1.3.3)

aggAcc: 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.

Examples

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

Run the code above in your browser using DataLab