I am also running into an error that I haven't seen before when processing 24-hour Axivity data. I've run several files without issue, but one file does not produce part 5 output. I have inspected the part 2 and part 4 output and it appears that I have 21 days with at least 16 hours of wear (valid day). I have also updated and restarted R/RStudio. When I try to process the file, I receive the error below:
Errors and warnings for 76664_0017930101.cwa.RData$message
[1] "invalid 'trim' argument"
$call
format.default(ts$time[sse[ts$diur[sse] == 0]], "%H")
I have included some code below if it is needed:
#=====================
# Parts 1 & 2
#=====================
do.enmoa = TRUE, do.enmo = FALSE,
strategy = 2, ndayswindow= 1,
hrs.del.start = 0, hrs.del.end = 0,
maxdur = 0, includedaycrit = 16,
winhr = c(5,10),
qlevels = c(c(1380/1440),c(1410/1440)),
qwindow=c(0,24),
ilevels = c(seq(0,400,by=50),8000),
mvpathreshold =c(100.4),
bout.metric = 4,
closedbout= FALSE,
overwrite=FALSE,
epochvalues2csv= TRUE,
#=====================
# Part 5
#=====================
threshold.lig = c(61.8), threshold.mod = c(100.4),
boutcriter.mvpa = 0.8,
boutdur.in = c(1), boutdur.lig = c(1),
boutdur.mvpa = c(1), save_ms5rawlevels = TRUE,
Thank you in advance for your suggestions!
-Sarah