read_agd: Read an ActiGraph agd file

View source: R/read_agd.R

read_agdR Documentation

Read an ActiGraph agd file

Description

Read an ActiGraph agd file

Usage

read_agd(
  file,
  return = c("data", "settings", "both"),
  tz = "UTC",
  verbose = FALSE
)

Arguments

file

character. Path to the agd file

return

character. The desired elements to return (see details)

tz

character. The desired timezone

verbose

logical. Print updates to console?

Details

The agd is made up of a settings element and a data element. The former is likely only necessary for debugging, and so the default is to return only the data element. Both settings and data are in data frame format. If return = "both", they are given as a list.

Value

the desired output

See Also

ActiGraph documentation

Examples

agd_file <- system.file("extdata", "example1sec.agd", package = "AGread")
read_agd(agd_file, "both")

AGread documentation built on Sept. 13, 2022, 5:06 p.m.