Parse activity samples from a GT3X file. The code in this function is a modified version of the read.gt3x in that it aids batch-loading of modern gt3x files. A pull request has been made to feed these enhancements back into the original code base https://github.com/THLfi/read.gt3x/pull/40. If and when merged we intend to deprecate the GGIR version of the code and make a direct dependency.
parseGT3Xggir(
filename,
max_samples,
scale_factor,
sample_rate,
start_time,
batch_begin = 0L,
batch_end = 0L,
verbose = FALSE,
debug = FALSE,
impute_zeroes = FALSE
)
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".
(char*) path to a log.bin file inside the unzipped gt3x folder, which contains the activity 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 for the activity samples.
sampling rate for activity samples.
starting time of the sample recording.
first second in time relative to start of raw non-imputed recording to include in this batch
last second in time relative to start of raw non-imputed recording to include in this batch
Print the parameters from the log.bin file and other messages?
Print information for every activity second
Impute zeros in case there are missingness?