| read_gt3x | R Documentation |
Read data from a gt3x file
read_gt3x(
file,
tz = "UTC",
verbose = FALSE,
include = c("METADATA", "PARAMETERS", "SENSOR_SCHEMA", "BATTERY", "EVENT", "TAG",
"ACTIVITY", "HEART_RATE_BPM", "HEART_RATE_ANT", "HEART_RATE_BLE", "LUX", "CAPSENSE",
"EPOCH", "EPOCH2", "EPOCH3", "EPOCH4", "ACTIVITY2", "SENSOR_DATA"),
flag_idle_sleep = FALSE,
parser = c("legacy", "dev", "external"),
cleanup = FALSE,
data_checks = TRUE,
...
)
file |
character. Path to the file |
tz |
character. The timezone to use |
verbose |
logical. Print updates to console? |
include |
character. The PACKET types to parse |
flag_idle_sleep |
should recorded idle sleep times be tagged? |
parser |
the parsing scheme to use, either |
cleanup |
logical. Delete unzipped files? |
data_checks |
logical. Run extra checks on the data (e.g. for large
values and duplicated timestamps)? Set to |
... |
arguments passed to |
The default value for include gives all possible packet types, of
which there are 18. Processing time can be reduced by passing a subset of the
18 possibilities. Exclusion is not recommended for the PARAMETERS and
SENSOR_SCHEMA packets, which also do not take long to process.
A list of processed data, with one element for each of the relevant packet types.
https://github.com/actigraph/GT3X-File-Format
file_3x <- system.file( "extdata", "example.gt3x", package = "AGread" ) AG_3x <- read_gt3x(file_3x) head(lapply(AG_3x, head))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.