View source: R/load-agd-data.R
| load_agd_data | R Documentation |
data table from an ActiGraph .agd file.This function loads the data table from an ActiGraph .agd
file.
load_agd_data(
file,
col_select = "everything",
day_max = 7,
start_date,
settings
)
file |
Required: a length-one character vector representing the full
path to an |
col_select |
Required (default: " |
day_max |
Required (default: |
start_date |
Optional: a length-one date vector (format: yyyy-mm-dd)
representing the first day of data to load from |
settings |
Optional: a tibble from |
Returns a tibble of the data table.
# 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 data with low frequency extension
dt <- load_agd_data(
file = agd_data$args$agd_lfe,
start_date = agd_data$args$start_date
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.