Marks Periods of 'Bedrest' in Actigraph Accelerometer Data
Overview
Contains a function to categorize accelerometer readings collected in free-living (e.g., for 24 hours/day for 7 days), preprocessed and compressed as counts (unit-less value) in a specified time period termed epoch (e.g., 1 minute) as either bedrest (sleep) or active. The input is a matrix with a timestamp column and a column with number of counts per epoch. The output is the same dataframe with an additional column termed bedrest. In the bedrest column each line (epoch) contains a function-generated classification 'br' or 'a' denoting bedrest/sleep and activity, respectively. The package is designed to be used after wear/nonwear marking function in the 'PhysicalActivity' package. Version 1.1 adds preschool thresholds and corrects for possible errors in algorithm implementation.
Install
Health
NOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘J. Dustin Tracy <tracy@chapman.edu>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: c(person(given = c("J.", "Dustin"),
family = "Tracy",
role = c("aut", "cre"),
email = "tracy@chapman.edu"),
person(given = "Zhiyi",
family = "Xu",
role = "aut"),
person(given = "Sari",
family = "Acra",
role = "aut"),
person(given = c("Kong", "Y."),
family = "Chen",
role = "aut"),
person(given = c("Maciej", "S."),
family = "Buchowski",
role = "aut"),
person(given = "Thomas",
family = "Donnelly",
role = "aut"))
as necessary.- NOTE11 OK, 2 NOTE2026-09-08
- ERROR10 OK, 2 NOTE, 1 ERROR2026-09-07
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 3
- Examples that run
- 100%1 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- not tracked
- Return-value docs
- not tracked
- Help pages citing references
- 33%
Downloads
Dependencies
Installing PhysActBedRest adds 13 packages (9 with compiled code, 15 MB of source tarballs). Heaviest: stringi 11 MB, vctrs 1.0 MB, rlang 766 KB.
Code & Tests
Datasets
People & History
Maintainer since 1.0 (2016)
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 1.1Latest
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- 1.02016-04-06
- RR 3.2.0 released · 2015-04-16
Package metadata
- First published
- 2016-04-06
- Total releases
- 2 / 10 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 18 KB / 2 files
- Download size
- 19 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("PhysActBedRest")Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.