tidy2sp: Transforms a data frame with map coordinates in a...

Description Usage Arguments Value Examples

Description

Starting from a data frame with map coordinates, transforms it in an object of class SpatialPolygonsDataFrame.

Usage

1
tidy2sp(.data)

Arguments

.data

data frame with map coordinates of polygons

Value

an object of class SpatialPolygonsDataFrame (from package sp)

Examples

1
2
3
4
data(g1k15)
g1k15_sp <- tidy2sp(g1k15)
class(g1k15_sp)
str(g1k15_sp)

gibonet/tidy2spatial documentation built on May 17, 2019, 4:20 a.m.