Learn R Programming

tmap (version 1.2)

split.SpatialPolygons: Divide into multiple shape objects

Description

Divide a shape object into multiple objects.

Usage

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

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

## S3 method for class 'SpatialLines':
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