From 0ab2e75c2f722d47a2c641043c4794dc27f97749 Mon Sep 17 00:00:00 2001 From: Jairo H Migueles Date: Mon, 30 Oct 2023 11:30:19 +0100 Subject: [PATCH] fixed issue with duplicated second when appending gt3x data --- R/g.readaccfile.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/g.readaccfile.R b/R/g.readaccfile.R index 253680114..5e642df13 100644 --- a/R/g.readaccfile.R +++ b/R/g.readaccfile.R @@ -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 {