State of Data and AI Literacy Report 2025
Download Now
Rdocumentation
powered by
Learn R Programming
sorvi (version 0.4.05)
SplitSpatial: Split a Spatial*DataFrame object into a list of Spatial*DataFrames
Description
Subregions of a Spatial*DataFrame are splitted into a list based on a field containing a identifier which must be a factor.
Usage
SplitSpatial(sp.object, split.field)
Arguments
sp.object
A Spatial*DataFrame object to be splitted
split.field
A string describing the identifier field for the subregions
Value
a list of Shape objects (from SpatialPolygonsDataFrame class)
Details
No schema or CRS checking is performed as all the spatial information and geometries are coming from a common source.
References
See citation("sorvi")
Examples
Run this code
#
Run the code above in your browser using
DataLab