Skip to content

Commit c62169a

Browse files
Fixes #34
1 parent e6e2f80 commit c62169a

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

R/addIterations.R

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -273,14 +273,19 @@ addIterations <- function(
273273
}
274274

275275
# Keep track of performance.
276-
scoreSummary <- rbind(
277-
scoreSummary
278-
, data.table(
279-
"Epoch" = rep(Epoch,nrow(NewResults))
280-
, "Iteration" = 1:nrow(NewResults) + nrow(scoreSummary)
281-
, "inBounds" = rep(TRUE,nrow(NewResults))
282-
, NewResults
276+
# fill is true because users can pass their own columns.
277+
scoreSummary <- rbindlist(
278+
list(
279+
scoreSummary
280+
, data.table(
281+
"Epoch" = rep(Epoch,nrow(NewResults))
282+
, "Iteration" = 1:nrow(NewResults) + nrow(scoreSummary)
283+
, "inBounds" = rep(TRUE,nrow(NewResults))
284+
, NewResults
285+
)
283286
)
287+
, use.names=TRUE
288+
, fill=TRUE
284289
)
285290
optObj$scoreSummary <- scoreSummary
286291
optObj$GauProList$gpUpToDate <- FALSE

0 commit comments

Comments
 (0)