shpSplitR: A tool for splitting ESRI shape files

Description Usage Arguments Value Author(s) Examples

View source: R/shpSplitR.R

Description

Takes an ESRI shape file and splits it into multiple shape files based on unique entries in a field of the attribute table.

Usage

1
shpSplitR(shp, shp.ID)

Arguments

shp

character string of the name of the shape file (no extension)

shp.ID

character string of the name of the field in the attribute table of the shape file that contains the unique entries (e.g.site numbers)

Value

creates multiple ESRI shape files each named after the unique entry found in 'shp.ID'.

Author(s)

Bart Huntley, bart.huntley@dpaw.wa.gov.au

Examples

1
2
3
4
## Not run: 
shpSplitR("plot_locations", "Plot_ID")

## End(Not run)

Bartesto/BARTpkg documentation built on May 5, 2019, 10:28 a.m.