Skip to content

Commit

Permalink
fixed silly RunModels bug
Browse files Browse the repository at this point in the history
  • Loading branch information
goldingn committed Sep 10, 2015
1 parent 5f9925b commit 23b6d3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/zoonHelpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ RunModels <- function(df, modelFunction, paras, workEnv){
# If external validation dataset exists, predict that;.
if(0 %in% df$fold){

pred <- ZoonPredict(modelFold,
pred <- ZoonPredict(m,
newdata = df[df$fold == 0, 6:NCOL(df), drop = FALSE])

dfOut$predictions[df$fold == 0] <- pred
Expand Down

0 comments on commit 23b6d3f

Please sign in to comment.