Skip to content

Commit

Permalink
visible return in eval_forecasts
Browse files Browse the repository at this point in the history
  • Loading branch information
sbfnk committed Aug 24, 2021
1 parent 6d67f9d commit 4002705
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions R/eval_forecasts_binary.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ eval_forecasts_binary <- function(data,
by = summarise_by]

}

return(res[])
}


2 changes: 1 addition & 1 deletion R/eval_forecasts_continuous_integer.R
Original file line number Diff line number Diff line change
Expand Up @@ -169,5 +169,5 @@ eval_forecasts_sample <- function(data,
pit_plots = pit_histograms)
}

return(res)
return(res[])
}
4 changes: 2 additions & 2 deletions R/eval_forecasts_helper.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ add_quantiles <- function(dt, varnames, quantiles, by) {
na.rm = TRUE)),
by = c(by)]
}
return(dt)
return(dt[])
}


Expand All @@ -41,5 +41,5 @@ add_sd <- function(dt, varnames, by) {
for (varname in varnames) {
dt[, paste0(varname, "_sd") := sd(get(varname), na.rm = TRUE), by = by]
}
return(dt)
return(dt[])
}
2 changes: 1 addition & 1 deletion R/eval_forecasts_quantile.R
Original file line number Diff line number Diff line change
Expand Up @@ -194,5 +194,5 @@ eval_forecasts_quantile <- function(data,
res[, c("quantile_coverage") := NULL]
}

return(res)
return(res[])
}

0 comments on commit 4002705

Please sign in to comment.