I would like to erase the elements of A, a SpatialLinesDataFrame, that overlap with B, another SpatialLinesDataFrame to give A' which should be smaller than A. In other words I want a new SLDF that does NOT overlap at all with B. This is essentially the "erase" function in ArcMap. To be clear I do not want to keep the instances where they overlap, I want to eliminate the overlapping instances from A so that A' and B have no overlap.
Thanks!