Package: PhysActBedRest 1.1

J. Dustin Tracy

PhysActBedRest: Marks Periods of 'Bedrest' in Actigraph Accelerometer Data

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.

Authors:J. Dustin Tracy, Zhiyi Xu, Sari Acra, Kong Y. Chen, Maciej S. Buchowski, Thomas Donnelly

PhysActBedRest_1.1.tar.gz
PhysActBedRest_1.1.tar.gz(r-4.5-noble)PhysActBedRest_1.1.tar.gz(r-4.4-noble)
PhysActBedRest_1.1.tgz(r-4.4-emscripten)PhysActBedRest_1.1.tgz(r-4.3-emscripten)
PhysActBedRest.pdf |PhysActBedRest.html
PhysActBedRest/json (API)

# Install 'PhysActBedRest' in R:
install.packages('PhysActBedRest', repos = 'https://cloud.r-project.org')
Datasets:
  • wr_ad_lb1499 - Wrist Accelerometer data from an adult subject lb1499
  • wr_ad_lb1499 - Wrist Accelerometer data from an adult subject lb1499

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

1.30 score 1 stars 166 downloads 2 mentions 1 exports 13 dependencies

Last updated 5 years agofrom:283145851e. Checks:3 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKMar 28 2025
R-4.5-linuxOKMar 28 2025
R-4.4-linuxOKMar 28 2025

Exports:markbedrest

Dependencies:chronclicpp11genericsgluelifecyclelubridatemagrittrrlangstringistringrtimechangevctrs

Citation

To cite package ‘PhysActBedRest’ in publications use:

Tracy JD, Xu Z, Acra S, Chen KY, Buchowski MS, Donnelly T (2020). PhysActBedRest: Marks Periods of 'Bedrest' in Actigraph Accelerometer Data. R package version 1.1, https://CRAN.R-project.org/package=PhysActBedRest.

ATTENTION: This citation information has been auto-generated from the package DESCRIPTION file and may need manual editing, see ‘help("citation")’.

Corresponding BibTeX entry:

  @Manual{,
    title = {PhysActBedRest: Marks Periods of 'Bedrest' in Actigraph
      Accelerometer Data},
    author = {J. Dustin Tracy and Zhiyi Xu and Sari Acra and Kong Y.
      Chen and Maciej S. Buchowski and Thomas Donnelly},
    year = {2020},
    note = {R package version 1.1},
    url = {https://CRAN.R-project.org/package=PhysActBedRest},
  }