paulhibbing / AGread

Read Accelerometer Files from ActiGraph Accelerometers
Other
15 stars 4 forks source link

Missing packets at start of file #12

Closed paulhibbing closed 4 years ago

paulhibbing commented 4 years ago

read_gt3x currently has no rule for filling in data for missing packets at the start of a file. I was originally unsure if that would ever happen, so I built in a call to stopifnot that would throw an error if it did.

It turns out, there are sometimes missing packets at the start of a file. I will push a fix when I figure out what the rule is and how to implement it. My guess is, the data are filled in with straight zeroes.

paulhibbing commented 4 years ago

Yes, they are filled with zeroes. The overall imputation procedures have been revised in the recent push. They don't run faster, but the framework is clearer and may lend itself to speedups in the future.