First or Last Part of a Spatial Pattern
Returns the first few elements (head
) or the last few
elements (tail
) of a spatial pattern.
## S3 method for class 'ppp' head(x, n = 6L, ...) ## S3 method for class 'ppx' head(x, n = 6L, ...) ## S3 method for class 'psp' head(x, n = 6L, ...) ## S3 method for class 'tess' head(x, n = 6L, ...) ## S3 method for class 'ppp' tail(x, n = 6L, ...) ## S3 method for class 'ppx' tail(x, n = 6L, ...) ## S3 method for class 'psp' tail(x, n = 6L, ...) ## S3 method for class 'tess' tail(x, n = 6L, ...)
x |
A spatial pattern of geometrical figures,
such as a spatial pattern of points
(an object of class |
n |
Integer. The number of elements of the pattern that should be extracted. |
... |
Ignored. |
To inspect the spatial coordinates themselves, use
View(x)
or head(as.data.frame(x))
.
An object of the same class as x
.
Adrian Baddeley Adrian.Baddeley@curtin.edu.au, Rolf Turner r.turner@auckland.ac.nz and Ege Rubak rubak@math.aau.dk.
Conversion to data frame:
as.data.frame.ppp
,
as.data.frame.ppx
,
as.data.frame.psp
head(cells) tail(edges(letterR), 5) head(dirichlet(cells), 4)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.