Description Usage Arguments Value Author(s) Examples
View source: R/g.readaccfile.R
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.
1 2 | g.readaccfile(filename,blocksize,blocknumber,selectdaysfile=c(),filequality,
decn,dayborder,ws)
|
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 |
P=P,filequality=filequality, switchoffLD = switchoffLD
P
Block object extracted from file with format specific to
accelerometer brand
filequality
Same as in function arguments
switchoffLD
Boolean to indicate whether it is worth
continueing to read the next block of data or not
Vincent T van Hees <vincentvanhees@gmail.com>
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.