Skip to content

Instantly share code, notes, and snippets.

@alexsingleton
Created August 17, 2016 06:15
Show Gist options
  • Save alexsingleton/cda4e90699acf1e3c7295d63226a09da to your computer and use it in GitHub Desktop.
Save alexsingleton/cda4e90699acf1e3c7295d63226a09da to your computer and use it in GitHub Desktop.
ESRI Function R
tool_exec <- function(in_params, out_params) {
# the first input parameter, as a character vector
input.dataset <- in_params[[1]]
# alternatively, can access by the parameter name:
input.dataset <- in_params$input_dataset
print(input.dataset)
# ... do analysis steps
out_params[[1]] <- results.dataset
return(out_params)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment