View source: R/load-agd-settings.R
| load_agd_settings | R Documentation |
settings table from an ActiGraph .agd file.This function loads the settings table from an ActiGraph
.agd file.
load_agd_settings(file)
file |
Required: a length-one character vector representing the full
path to an |
Returns a tibble of the settings table in a wide shape.
# Initialize agd_worker R6 class
agd_data <- agd_worker$new(
id = "jane-canuck",
age = 10,
agd_lfe = system.file("extdata", "jane-canuck-lfe.agd", package = "chms"),
agd_nml = system.file("extdata", "jane-canuck-nml.agd", package = "chms"),
epoch_length = 15,
day_max = 3,
sleep_algo = "barreira",
non_wear_algo = "barreira"
)
# Load ActiGraph settings
dt <- load_agd_settings(agd_data$args$agd_lfe)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.