This function extracts data from a shape data with 2 levels in file$geometry

team_11(x, tolerance)

Arguments

x

the result of read_sf(".shp")

tolerance

Tolerance level for thinning shape file. A percentage between 0 and 1.

Value

a small shape file in latitude-longitude format

Details

Converts the geometry section of a shape file to latitude-longitude format

  • name = subregion name depicted by the data

  • region = coded subregion

  • group = indicates which polygon a set of points corresponds to

  • long = longitude of the point

  • lat = latitude of the point

See also

team_10, team_5

Examples

dsn=system.file("extdata", "gadm36_AUS_1.shp", package = "lab3team12") dsh=sf::read_sf(dsn) tmp=team_11(x = dsh)