g.readaccfile: Generic functiont to read large blocks of accelerometer data

Description Usage Arguments Value Author(s) Examples

View source: R/g.readaccfile.R

Description

The function is used by g.getmeta to read large blocks of the accelerometer file, which are processed and then deleted. This is needed for memory management.

Usage

1
2
g.readaccfile(filename,blocksize,blocknumber,selectdaysfile=c(),filequality,
                         decn,dayborder,ws)

Arguments

filename

filename

blocksize

Size of blocks (in file pages) to be read

blocknumber

Block number relative to start of file

selectdaysfile

See documentation g.getmeta

filequality

Single row dataframe with columns: filetooshort, filecorrupt, and filedoesnotholdday. All with the value TRUE or FALSE

decn

Character with a dot or a comma, used for interpretting samplefrequency in the file header. decn is derived with g.dotorcomma

dayborder

See documentation g.part1

ws

Larger windowsize for non-detection, see documentation g.part2

Value

P=P,filequality=filequality, switchoffLD = switchoffLD

Author(s)

Vincent T van Hees <vincentvanhees@gmail.com>

Examples

1
2
3
4
5
6
7
8
## Not run: 
filequality = data.frame(filetooshort=FALSE,filecorrupt=FALSE,
filedoesnotholdday = FALSE)
output = g.readaccfile(filename="C:/myfile.bin",blocksize=20000,blocknumber=1,
selectdaysfile=c(),filequality=filequality,
                         decn=".",dayborder=0) 

## End(Not run)

PeteJWatson/ggircal documentation built on Nov. 24, 2021, 11:14 a.m.