Skip to content

Read Accelerometer Files from ActiGraph Accelerometers

License

Notifications You must be signed in to change notification settings

paulhibbing/AGread

Repository files navigation

License CRAN_Status_Badge


AGread

AGread is for bringing ActiGraph sensor data into R. It is designed to streamline and standardize the file-reading process, regardless of which file format is provided (currently supporting .gt3x, .agd, and .csv).

AGread can be used flexibly to develop new methods for handling ActiGraph data, or to invoke existing methods, many of which exist in other R packages (e.g. PhysicalActivity and TwoRegression), or will soon.

As of AGread 1.0.0, Rcpp has been invoked to speed up the process of reading .gt3x files. There is now documented equivalence between the outcomes of read_gt3x and csv reading functions read_AG_raw and read_AG_IMU. For faster reading, users can set parser = "dev" when calling read_gt3x. (Beware of setting verbose = TRUE when using the legacy parser, as progress updates are implemented with sickening inefficiency.)

AGread also offers minimal pre-processing, for tasks such as reintegration.

Installation

You can install the development version of AGread from github with:

# install.packages("remotes")
remotes::install_github("paulhibbing/AGread")

Windows users, make sure you have Rtools installed before running the above.

Alternatively, AGread v1.3.0 is available on CRAN. Install it with:

install.packages("AGread")