Skip to content

Commit

Permalink
Merge pull request #128 from goldingn/master
Browse files Browse the repository at this point in the history
more fixes to ZoonModel PR
  • Loading branch information
goldingn committed Sep 10, 2015
2 parents 5c5a0a4 + 0fc4daf commit 800320a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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
4 changes: 2 additions & 2 deletions inst/doc/Module_IO_for_devs.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ Out: df with longitude latitude value type fold
out: raster layer or raster stack

### Process
in: list(df with value, type, fold, lon, lat + covs, covar raster)
out: list(df with value, type, fold, lon, lat + covs, covar raster)
in: list(df with value, type, fold, longitude, latitude + covs, covar raster)
out: list(df with value, type, fold, longitude, latitude + covs, covar raster)


### Model
Expand Down

0 comments on commit 800320a

Please sign in to comment.