Skip to content

Instantly share code, notes, and snippets.

@timcdlucas
Created September 11, 2017 12:10
Show Gist options
  • Save timcdlucas/19d9bc6c7963357076ee05dbae77bcce to your computer and use it in GitHub Desktop.
Save timcdlucas/19d9bc6c7963357076ee05dbae77bcce to your computer and use it in GitHub Desktop.
Replacement operators for zoon
# Run a workflow, specifying one module of each type.
work1 <- workflow(occurrence = UKAnophelesPlumbeus,
covariate = UKAir,
process = OneHundredBackground,
model = LogisticRegression,
output = PrintMap)
# Current form
work1 <- ChangeWorkflow(work1, model = RandomForest)
# Replacement form
model(work1) <- RandomForest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment