nobjects
From spatstat v1.63-0
by Adrian Baddeley
Count Number of Geometrical Objects in a Spatial Dataset
A generic function to count the number of geometrical objects in a spatial dataset.
Usage
nobjects(x) # S3 method for ppp
nobjects(x)
# S3 method for ppx
nobjects(x)
# S3 method for psp
nobjects(x)
# S3 method for tess
nobjects(x)
# S3 method for lintess
nobjects(x)
Arguments
- x
A dataset.
Details
The generic function nobjects
counts the number of
geometrical objects in the spatial dataset x
.
The methods for point patterns (classes "ppp"
and "ppx"
,
embracing "pp3"
and "lpp"
)
count the number of points in the pattern.
The method for line segment patterns (class "psp"
)
counts the number of line segments in the pattern.
The method for tessellations (class "tess"
or "lintess"
)
counts the number of tiles of the tessellation.
Value
A single integer.
See Also
Examples
# NOT RUN {
nobjects(redwood)
nobjects(edges(letterR))
nobjects(dirichlet(cells))
nobjects(lineardirichlet(runiflpp(5, simplenet)))
# }
Community examples
Looks like there are no examples yet.