title: R: Get all xy-coordinates at the intersection of lines within one SpatialLines(DataFrame)
body: <p>I'm looking for a way to get the xy-coordinates of all the intersections within one <code>SpatialLines</code> object or <code>SpatialLinesDataFrame</code>. I have found the function <code>gIntersect</code> of <code>rgeos</code> but that only looks at the intersection between two datasets. Since I am working with a dataset of over half a million lines it would take too much time to make a separate file of every line and check whether any line intersects with another. In ArcMap there is the Intersect function that is able to do it in a couple of seconds and I was wondering whether there was also such a function in R. Thanks!</p>