list_polygons.Rd
Returns a list of filepaths to shapefiles and optionally sort these by their polygon ID. By default, this will recursively search any subdirectories.
list_polygons(..., recursive = TRUE, sort = FALSE)
... | a list of values to be concatenated into a filepath |
---|---|
recursive | should subdirectories be searched? Default is TRUE |
sort | should the filenames be sorted by ID? Default is FALSE |
a list of polygons
list_polygons(system.file("extdata", package = "polyCheck"), "polygons")#> [1] "/Users/michaelharper/Documents/GitHub/polyCheck/inst/extdata/polygons/000_js_polygon.shp" #> [2] "/Users/michaelharper/Documents/GitHub/polyCheck/inst/extdata/polygons/001_js_polygon.shp" #> [3] "/Users/michaelharper/Documents/GitHub/polyCheck/inst/extdata/polygons/002_mh_polygon.shp" #> [4] "/Users/michaelharper/Documents/GitHub/polyCheck/inst/extdata/polygons/003_mh_polygon.shp" #> [5] "/Users/michaelharper/Documents/GitHub/polyCheck/inst/extdata/polygons/004_dc_polygon.shp" #> [6] "/Users/michaelharper/Documents/GitHub/polyCheck/inst/extdata/polygons/005_dc_polygon.shp" #> [7] "/Users/michaelharper/Documents/GitHub/polyCheck/inst/extdata/polygons/006_ss_polygon.shp" #> [8] "/Users/michaelharper/Documents/GitHub/polyCheck/inst/extdata/polygons/007_ss_polygon.shp"