This function, largely superseded by sf implementations, still works but is not particularly fast.

overline_spatial(sl, attrib, fun = sum, = FALSE, buff_dist = 0)



SpatialLinesDataFrame with overlapping Lines to split by number of overlapping features.


character, column names in sl to be aggregated


Named list of functions to summaries the attributes by? sum is the default. list(sum = sum, average = mean) will summarise all attributes by sum and mean.

Sets whether aggregated values with a value of zero are removed.


A number specifying the distance in meters of the buffer to be used to crop lines before running the operation. If the distance is zero (the default) touching but non-overlapping lines may be aggregated.

See also