Skip to content

Instantly share code, notes, and snippets.

View simonkassel's full-sized avatar

Simon Kassel simonkassel

View GitHub Profile
# Spatial Test Set for Logistic Regression
# Author: Simon Kassel
tool_exec <- function(in_params, out_params){
# Install and load necessary packages
arc.progress_label("Loading packages...")
for (p in c("caret", "sp", "plyr", "maptools", "ggplot2", "dplyr")) {
if (!requireNamespace(p, quietly = TRUE))
install.packages(p)
suppressMessages(library(p, character.only = TRUE))