as.SpatialPolygonsDataFrame.recmap {recmap}R Documentation

Convert a recmap Object to SpatialPolygonsDataFrame Object.

Description

The method generates a SpatialPolygons object of a as input given recmap object. Both data.frames are merged by the index order.

Usage

## S3 method for class 'recmap'
as.SpatialPolygonsDataFrame(x, df = NULL, ...)

Arguments

x

a recmap object.

df

a data.frame object. default is NULL.

...

...

Examples

SpDf <- as.SpatialPolygonsDataFrame(recmap(checkerboard(8)))
summary(SpDf)
spplot(SpDf)


[Package recmap version 1.0.17 Index]