Skip to content

Commit

Permalink
fixed issue with duplicated second when appending gt3x data
Browse files Browse the repository at this point in the history
  • Loading branch information
jhmigueles committed Oct 30, 2023
1 parent db25c5c commit 0ab2e75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/g.readaccfile.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ g.readaccfile = function(filename, blocksize, blocknumber, filequality,
# endpage and the blocksize.
if (blocknumber != 1 & length(PreviousEndPage) != 0) {
# if ((mon == MONITOR$GENEACTIV && dformat == FORMAT$BIN) || dformat == FORMAT$CSV) { # change this line as the csv data do not need to skip one more row (the skip argument in read.csv does not include this row of the dataset)
if (mon == MONITOR$GENEACTIV && dformat == FORMAT$BIN) {
# only in GENEActiv binary data and for csv format data
if ((mon == MONITOR$GENEACTIV && dformat == FORMAT$BIN) | dformat == FORMAT$GT3X) {
# only in GENEActiv binary data and for gt3x format data
# page selection is defined from start to end (including end)
startpage = PreviousEndPage + 1
} else {
Expand Down

0 comments on commit 0ab2e75

Please sign in to comment.