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

Description Usage Arguments Value Examples

View source: R/tidy2spatial.R

Description

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

Usage

1

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 14, 2017, 10:53 a.m.