stepmetrics: Calculate Step and Cadence Metrics from Wearable Data (original) (raw)
Provides functions to calculate step- and cadence-based metrics from timestamped accelerometer and wearable device data. Supports CSV and AGD files from 'ActiGraph' devices, CSV files from 'Fitbit' devices, and step counts derived with R package 'GGIR' <https://github.com/wadpac/GGIR>, with automatic handling of epoch lengths from 1 to 60 seconds. Metrics include total steps, cadence peaks, minutes and steps in predefined cadence bands, and time and steps in moderate-to-vigorous physical activity (MVPA). Methods and thresholds are informed by the literature, e.g., Tudor-Locke and Rowe (2012) <doi:10.2165/11599170-000000000-00000>, Barreira et al. (2012) <doi:10.1249/MSS.0b013e318254f2a3>, and Tudor-Locke et al. (2018) <doi:10.1136/bjsports-2017-097628>. The package record is also available on Zenodo (2023) <doi:10.5281/zenodo.7858094>.
| Version: | 1.0.3 |
|---|---|
| Depends: | R (≥ 3.5.0) |
| Imports: | PhysicalActivity, tools, stats, utils |
| Suggests: | testthat (≥ 3.0.0), RSQLite, spelling, withr |
| Published: | 2025-10-01 |
| DOI: | 10.32614/CRAN.package.stepmetrics |
| Author: | Jairo H Migueles [aut, cre], Elroy J Aguiar [fnd] (Funding and data support), University of Alabama [fnd] |
| Maintainer: | Jairo H Migueles |
| BugReports: | https://github.com/jhmigueles/stepmetrics/issues |
| License: | AGPL (≥ 3) |
| URL: | https://github.com/jhmigueles/stepmetrics |
| NeedsCompilation: | no |
| Language: | en-US |
| Citation: | stepmetrics citation info |
| Materials: | README, NEWS |
| CRAN checks: | stepmetrics results |
Documentation:
Downloads:
Linking:
Please use the canonical formhttps://CRAN.R-project.org/package=stepmetricsto link to this page.