Learn R Programming

tmap (version 0.7)

split.SpatialPolygonsDataFrame: Divide into multiple shape objects

Description

Divide shape object into multiple objects.

Usage

## S3 method for class 'SpatialPolygonsDataFrame':
split(x, f, drop = FALSE, ...)

## S3 method for class 'SpatialPointsDataFrame':
split(x, f, drop = FALSE, ...)

## S3 method for class 'SpatialLinesDataFrame':
split(x, f, drop = FALSE, ...)

Arguments

x
shape object, which is one of
  1. SpatialPolygons(DataFrame)

Value

  • List of shape objects.

item

  • f
  • drop
  • ...

code

x