Learn R Programming

tmap (version 0.7)

split_lines_poly: Split lines by polygons

Description

Split a lines shape object by a polygon shape object. Data of the corresponding polygons is appended to the line segments (Experimental, see note)

Usage

split_lines_poly(shp.lines, shp.poly, variables.lines, variables.poly)

Arguments

shp.lines
The shape object that contains the lines, i.e. a SpatialLinesDataFrame
shp.poly
The shape object that contains the polygons, i.e. a SpatialPolygonsDataFrame
variables.lines
Names of the variables of shp.lines that are appended to the split lines shape object.
variables.poly
Names of the variables of shp.poly that are appended to the split lines shape object.

Value