Returns the first few elements (head) or the last few
elements (tail) of a spatial pattern.
Usage
"head"(x, n = 6L, ...)
"head"(x, n = 6L, ...)
"head"(x, n = 6L, ...)
"head"(x, n = 6L, ...)
"tail"(x, n = 6L, ...)
"tail"(x, n = 6L, ...)
"tail"(x, n = 6L, ...)
"tail"(x, n = 6L, ...)
Arguments
x
A spatial pattern of geometrical figures,
such as a spatial pattern of points
(an object of class "ppp", "pp3", "ppx" or
"lpp") or a spatial pattern of line segments
(an object of class "psp") or a tessellation
(object of class "tess").
n
Integer. The number of elements of the pattern that should be extracted.
...
Ignored.
Value
An object of the same class as x.
Details
These are methods for the generic functions head
and tail. They extract the first or last
n elements from x and return them as an object of the
same kind as x.
To inspect the spatial coordinates themselves, use
View(x)
or head(as.data.frame(x)).