"as.data.frame"(x, row.names = NULL, ...)
"ppp"
).as.data.frame
for the class "ppp"
of point patterns. It extracts the coordinates of the points in the point pattern, and
returns them as columns named x
and y
in a data frame.
If the points were marked, the marks are returned as a column
named marks
with the same type as in the point pattern dataset.
data(amacrine)
df <- as.data.frame(amacrine)
df[1:5,]
Run the code above in your browser using DataLab