This is a method for the generic function as.data.frame
for the class "psp"
of line segment patterns. It extracts the coordinates of the endpoints of the line segments, and
returns them as columns named x0
, y0
, x1
and
y1
in a data frame. If the line segments were marked,
the marks are returned as a column named marks
in the data
frame, with the same type as in the line segment pattern dataset.