AGread: Read Data Files from ActiGraph Monitors

Description Core functions Examples

Description

This provides support for reading ActiGraph files of various modes into R. For more information see: https://actigraph.desk.com/customer/en/portal/articles/2515800-what-do-the-different-mode-numbers-mean-in-a-csv-or-dat-file-. Functions are provided to read and minimally pre-process raw data from primary accelerometer and inertial measurement unit files. Reading binary .gt3x files is now supported as well. See https://github.com/actigraph/GT3X-File-Format for more information.

Core functions

read_AG_counts

read_AG_raw

read_AG_IMU

read_gt3x

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
AG_counts <- read_AG_counts(
  system.file(
  "extdata",
  "example1sec.csv",
  package = "AGread"
  ),
  skip = 11
)
AG_RAW <- read_AG_raw(
  system.file(
  "extdata",
  "exampleRAW.csv",
  package = "AGread"
  )
)
AG_IMU <- read_AG_IMU(
  system.file(
  "extdata",
  "example-IMU.csv",
  package = "AGread"
  )
)
file_3x <- system.file(
  "extdata", "example.gt3x", package = "AGread"
)
AG_3x <- read_gt3x(file_3x)

head(AG_counts)
head(AG_RAW)
head(AG_IMU)
head(lapply(AG_3x, head))

AGread documentation built on Feb. 26, 2020, 5:12 p.m.