stepping.cadence.bands.folder.two.stepping.groups: Processes events files to produce histograms showing the...

Description Usage Arguments Examples

View source: R/stepping.cadence.histogram.R

Description

Processes a folder of events files and generates a faceted set of histograms for each events file showing the duration of stepping in different cadence bands (each cadence band has a width of 10 steps per minute) for stepping bouts of duration 10 seconds to 1 minute and 1 minute plus. The weighted median cadence of stepping at each stepping bout duration is also calculated and indicated on the histogram. The values of the weighted median cadence for each stepping duration across all the processed events files is also returned as a data.frame.

Usage

1
2
stepping.cadence.bands.folder.two.stepping.groups(input_folder,
  output_folder, generate_charts = TRUE)

Arguments

input_folder

The filepath for the folder where the events files to be processed are saved

output_folder

The filepath for the folder where the generated files are to be saved

generate_charts

Set TRUE if stacked histograms showing the distribution of stepping cadences are to be generated for each events file. Default = TRUE

Examples

1
2
3
4
5
6
input_folder <- paste(system.file("extdata", "", package = "activPAL"),"/",sep="")
output_folder <- paste(tempdir(),"/",sep="")

activPAL::stepping.cadence.bands.folder.two.stepping.groups(input_folder,output_folder,TRUE)
# Omitting a value for generate_charts results in the charts being saved in the output folder.
activPAL::stepping.cadence.bands.folder.two.stepping.groups(input_folder,output_folder)

activPAL documentation built on July 18, 2019, 5:03 p.m.