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.)
Usage
read_agd(file, tz = "UTC")
Value
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.
Arguments
file
Full path to an agd file to read.
tz
Time zone to convert DateTime ticks to POSIX time.