This function, largely superseded by sf implementations, still works but is not particularly fast.
overline_spatial(sl, attrib, fun = sum, na.zero = 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?
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.