Function to read binary files as produced by the GENEActiv accelerometer by ActivInsights Ltd https://activinsights.com/
GENEActivReader(filename, start = 0L, end = 0L, progress_bar = FALSE)
List with ReadOK (good=0 or error=1), ReadErrors (Count of pages with read errors), SampleRate (Hertz), numBlocksTotal
Numeric vector with time in miliseconds since start page
Numeric vector with x-axis acceleration in gravitational units
Numeric vector with y-axis acceleration in gravitational units
Numeric vector with z-axis acceleration in gravitational units
matrix with battery voltage and corresponding timestamps
Numeric vector with lux values in Volts
filename (required)
start page for reading data
end page for reading data
Boolean
Patrick Bos <egpbos@gmail.com> Vincent T van Hees <v.vanhees@accelting.com>
If only start page is defined then all data is read beyond
start until the end of the file is reached