parseGT3X: Parse activity samples from a GT3X file

View source: R/RcppExports.R

parseGT3XR Documentation

Parse activity samples from a GT3X file

Description

Parse activity samples from a GT3X file

Usage

parseGT3X(
  filename,
  max_samples,
  scale_factor,
  sample_rate,
  start_time,
  batch_begin = 0L,
  batch_end = 0L,
  verbose = FALSE,
  debug = FALSE,
  impute_zeroes = FALSE
)

Arguments

filename

(char*) path to a log.bin file inside the unzipped gt3x folder, which contains the activity samples

max_samples

Maximum number of rows to parse. The returned matrix will always contain this number of rows, having zeroes if not data is found.

scale_factor

Scale factor for the activity samples.

sample_rate

sampling rate for activity samples.

start_time

starting time of the sample recording.

batch_begin

first second in time relative to start of raw non-imputed recording to include in this batch

batch_end

last second in time relative to start of raw non-imputed recording to include in this batch

verbose

Print the parameters from the log.bin file and other messages?

debug

Print information for every activity second

impute_zeroes

Impute zeros in case there are missingness?

Value

Returns a matrix with max_samples rows and 3 columns with the acceleration samples. The matrix has attributes "time_index", "missingness", "start_time_log", "sample_rate", "impute_zeroes".


THLfi/read.gt3x documentation built on July 6, 2022, 11:06 a.m.