extract_id: Extract ID from polygon file name

Description Usage Arguments Examples

Description

For a specified polygon file, extract the three digit ID. It is expected that the polygon file has the name format "mh_030_polygon.shp". The function is vectorised it can be used for single or multiple values.

Usage

1
extract_id(filepath)

Arguments

filepath

a filepath or file name of a shapefile

Examples

1
2
3
 extract_id("mh_030_polygon.shp")
 extract_id("polygons/mh_030_polygon.shp")
 extract_id(c("polygons/mh_030_polygon.shp", "mh_031_polygon.shp"))

GRID3/polyCheck documentation built on May 26, 2019, 8:35 a.m.