load_agd_settings: Load the 'settings' table from an ActiGraph '.agd' file.

View source: R/load-agd-settings.R

load_agd_settingsR Documentation

Load the settings table from an ActiGraph .agd file.

Description

This function loads the settings table from an ActiGraph .agd file.

Usage

load_agd_settings(file)

Arguments

file

Required: a length-one character vector representing the full path to an .agd file.

Value

Returns a tibble of the settings table in a wide shape.

Examples

# 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)

chms documentation built on Oct. 17, 2026, 5:07 p.m.