View source: R/summarize-agd-data.R
| summarize_agd_data | R Documentation |
.agd file.This function summarizes an ActiGraph .agd file.
summarize_agd_data(x)
x |
Required: an agd_worker object. |
Returns a NULL invisibly.
# 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, clean and classify data
agd_data$load()$clean()$classify()
# Summarize data
summarize_agd_data(agd_data)
# Store updated data
dt <- agd_data$results$summary_full
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.