Hi all,
With GGIR version 2.9-5 everything is running smoothly but the visual report. I am getting this error:
Generate visual reports
Error in if (P2daysummary_tmp$`N hours`[1] < 24 & P2daysummary_tmp$`N hours`[1] > :
missing value where TRUE/FALSE needed
Does anybody have any thoughts?
I confess that I was wondering if it could be somewhat linked to what is being presented by Krista in the conversation entitled "
Error in part 4: Error in if (WKN2 > SLN2
)".
Please, find below the script being used. Attached there is the config file, the.RData file from meta/basic folder.
##GGIR analysis for WEBS##
##Run first this if wants step counts
source("***/verisense_count_steps.R") # update to local path to verisense_count_steps.R file
myfun = list(FUN=verisense_count_steps,
parameters= c(3, 5, 15, -0.5, 3, 4, 0.001, 1.2),
expected_sample_rate= 15,
expected_unit="g",
colnames = c("step_count"),
outputres = 1,
minlength = 1,
outputtype="numeric",
aggfunction = sum,
timestamp=F,
reporttype="event")
##CLEANER version##
library(GGIR)
GGIR(datadir="
C:/
***",
outputdir="
C:/
***",
configfile = "C:/***/config_webs2.csv",
WornDuringSleep = TRUE,
part2ImpWithZero = FALSE,
part2ExcludeNonwear = TRUE,
includedaycrit = 8,
ndayswindow = 0,
strategy = 1,
maxdur = 8,
hrs.del.start = 4,
hrs.del.end = 0,
includedaycrit.part5 = 0.33333333,
excludefirstlast.part5 = FALSE,
do.imp = FALSE,
minimum_MM_length.part5 = 8,
excludefirstlast = FALSE,
includenightcrit = 8,
excludefirst.part4 = FALSE,
excludelast.part4 = FALSE,
max_calendar_days = 8,
imputeTimegaps = FALSE,
myfun = myfun)
Thanks!
Leticia