Skip to content

Commit

Permalink
Merge pull request #234 from epiforecasts/bug-223-data.table-dev
Browse files Browse the repository at this point in the history
Fix 223 issue with add_coverage
  • Loading branch information
nikosbosse authored May 30, 2022
2 parents b0cee59 + 4952d7e commit 84c6ed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/summarise_scores.R
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ summarise_scores <- function(scores,
# takes the mean over ranges and quantiles first, if neither range nor
# quantile are in `by`. Reason to do this is that summaries may be
# inaccurate if we treat individual quantiles as independent forecasts
scores <- scores[, lapply(.SD, mean, ...),
scores <- scores[, lapply(.SD, base::mean, ...),
by = c(unique(c(forecast_unit, by))),
.SDcols = colnames(scores) %like% cols_to_summarise
]
Expand Down

0 comments on commit 84c6ed0

Please sign in to comment.