Example targets
workflow for
generating networks using
spatsoc
.
- Clone/fork/download/etc make your own copy somewhere!
- Add your data to the input folder (and remove the example data)
- Open
_targets.R
- Change the global variables in the Variables section
- Set your output (see below)
- Run
targets::tar_make()
As for output, right now it’s set up with four different options after the Targets section
- One data set, simply set the path
- Multiple data sets, provide the list or wildcard of paths
- Multiple data sets, and matching thresholds or other variables. Eg. one data set with 50m spatial threshold and another with 100m.
- Multiple data sets, crossed with multiple thresholds (or other variables). This could be used for a sensitivity analysis.
To select your output format, comment out or delete the other options.
Targets looks for the last declared target in the _targets.R
file.
Note: randomizations in progress, see the branch.