This function is called by the resp_example module and loads example datasets

resp_example(dataset, logger = NULL)

Arguments

dataset

character. The dataset to load. Either mad, nys or scot

logger

Stores all notification messages to be displayed in the Log Window. Insert the logger reactive list here for running in shiny, otherwise leave the default NULL

Value

an sf object

Author

Simon Smart simon.smart@cantab.net

Examples

shape <- resp_example("mad")
#> Reading layer `mdg_shapes' from data source 
#>   `/home/runner/work/_temp/Library/disagapp/extdata/shapes/mdg_shapes.shp' 
#>   using driver `ESRI Shapefile'
#> Simple feature collection with 109 features and 16 fields
#> Geometry type: MULTIPOLYGON
#> Dimension:     XY
#> Bounding box:  xmin: 43.19138 ymin: -25.60895 xmax: 50.48378 ymax: -11.94543
#> Geodetic CRS:  WGS 84