I have a large
SpatialLinesDataFrame (~23000 features) and a
SpatialPolygonsDataFrame (8 features). I want to make 8 new variables, each with the lines that are on the same locations as the polygons. This should be easy, but I can't find the right way.
I tried the
sp::over method, but it returns the error:
Don't Kont how to get path data from object of class data.frame. I assume that this is because in the help section there is not a method where
x = SpatialLinesDataFrame and
y = SpatialPolygonsDataFrame.