Learn R Programming

spbabel (version 0.3.2)

sptable: Convert from Spatial*DataFrame to table.

Description

Decompose a Spatial object to a single table structured as a row for every coordinate in all the sub-geometries, including duplicated coordinates that close polygonal rings, close lines and shared vertices between objects.

Usage

sptable(x, ...)
"sptable"(x, ...)
"sptable"(x, ...)
"sptable"(x, ...)
"sptable"(x, ...)
sptable(object) <- value

Arguments

x
Spatial object
...
ignored

For simplicity sptable and its inverse sp assume that all geometry can be encoded with object, branch, island, order, x and y. and that the type of topology is identified by which of these are present.

object
Spatial object
value
modified sptable version of object

Value

tbl_df data_frame with columns
  • SpatialPolygonsDataFrame "object_" "branch_" "island_" "order_" "x" "y_"
  • SpatialLinesDataFrame "object_" "branch_" "order_" "x_" "y_"
  • SpatialPointsDataFrame "object_" x_" "y_"
  • SpatialMultiPointsDataFrame "object_" "branch_" "x_" "y_"
Spatial object

Details

Input can be a SpatialPolygonsDataFrame, SpatialLinesDataFrame or a SpatialPointsDataFrame.