round.ppp
From spatstat v1.63-0
by Adrian Baddeley
Apply Numerical Rounding to Spatial Coordinates
Apply numerical rounding to the spatial coordinates of a point pattern.
Usage
# S3 method for ppp
round(x, digits = 0)# S3 method for pp3
round(x, digits = 0)
# S3 method for ppx
round(x, digits = 0)
Arguments
- x
A spatial point pattern in any dimension (object of class
"ppp"
,"pp3"
or"ppx"
).- digits
integer indicating the number of decimal places.
Details
These functions are methods for the generic function
round
.
They apply numerical rounding to the spatial coordinates of the
point pattern x
.
Value
A point pattern object, of the same class as x
.
See Also
rounding
to determine whether numbers have been
rounded.
round
in the Base package.
Examples
# NOT RUN {
round(cells, 1)
# }
Community examples
Looks like there are no examples yet.