Skip to content

Commit

Permalink
rounding predictions to 5 places so that they print without exponents
Browse files Browse the repository at this point in the history
  • Loading branch information
geneorama committed Aug 7, 2017
1 parent 43043ef commit 2ef7a0f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/32a_multilevel_model.R
Original file line number Diff line number Diff line change
Expand Up @@ -237,3 +237,9 @@ rm(tmpr)
xmat[grp == "year2016" & !is.na(wnvwnv_f1) , calculate_metrics(wnvwnv_f1, m3a_forecast)]
xmat[grp == "year2016", calculate_metrics(wnvwnv, m3a_forecast)]

## Round predictions
for (col in colnames(xmat[ , m2:m3a_forecast])){
xmat[ , (col) := round(xmat[[col]], 5)][]
}
xmat

0 comments on commit 2ef7a0f

Please sign in to comment.