Ran checks and updated
This commit is contained in:
parent
d21d52e84c
commit
d264e0e267
@ -57,7 +57,7 @@ close_events <- function(data, event = c("move", "flipCard", "openTopic", "openP
|
||||
|
||||
# remove eventIds associated with more than one trace, usually logging
|
||||
# errors that I cannot resolve
|
||||
corrupt_eventIds <- names(which(rowSums(xtabs( ~ eventId + trace, subdata) != 0) != 1))
|
||||
corrupt_eventIds <- names(which(rowSums(stats::xtabs( ~ eventId + trace, subdata) != 0) != 1))
|
||||
subdata <- subdata[!subdata$eventId %in% corrupt_eventIds, ]
|
||||
|
||||
if (event == "flipCard") {
|
||||
@ -233,7 +233,7 @@ close_events <- function(data, event = c("move", "flipCard", "openTopic", "openP
|
||||
|
||||
# fix durations that span more than one log file
|
||||
if (event != "move") {
|
||||
tab <- colSums(xtabs( ~ fileId + trace, subdata) != 0)
|
||||
tab <- colSums(stats::xtabs( ~ fileId + trace, subdata) != 0)
|
||||
number_logfiles <- data.frame(trace = names(tab), nlogfile = tab)
|
||||
data_wide <- merge(data_wide, number_logfiles, by = "trace", all.x = TRUE)
|
||||
data_wide$duration[data_wide$identi == "corrupt"] <-
|
||||
|
Loading…
Reference in New Issue
Block a user