read_agd {activAnalyzer} | R Documentation |
Read ActiGraph sleep watch data from a database stored in an AGD file. Return a tibble. (Code is from actigraph.sleepr package https://github.com/dipetkov/actigraph.sleepr/. See LICENSE.note file in the app skeleton.)
read_agd(file, tz = "UTC")
file |
Full path to an agd file to read. |
tz |
Time zone to convert DateTime ticks to POSIX time. |
A tibble
of activity data with at
least two columns: timestamp and axis1 counts. Optional columns
include axis2, axis2, steps, lux and inclinometer indicators
(incline off, standing, sitting and lying). The device settings
are stored as attributes, which include epochlength
.
The AGD file format is described in the ActiLife 6 Manual. https://actigraphcorp.com/support/manuals/actilife-6-manual/
file <- system.file("extdata", "acc.agd",
package = "activAnalyzer"
)
read_agd(file)