team_11: Convert Shape File to Data Frame

Description Usage Arguments Value Author(s) Examples

Description

This function extracts data from a shapefile. Reads in the shapefile and extracts data from nested lists, finally recording them into one data frame with columns: long, lat, group, area, sub and additional information containded by the original shape file.

Usage

1
team_11(path=getwd(), tol=0.1)

Arguments

path

file path to a shape file

tol

tolerance value used for thinning the polygon

Value

A data frame of the geographic information of the polygons.

Author(s)

Qing He

Examples

1
 nc<- team_11(system.file("shape/nc.shp", package="sf"),0.1)

ashirazist/ggshp documentation built on May 9, 2019, 1:07 a.m.