Learn R Programming

spatstat (version 1.48-0)

round.ppp: Apply Numerical Rounding to Spatial Coordinates

Description

Apply numerical rounding to the spatial coordinates of a point pattern.

Usage

"round"(x, digits = 0)
"round"(x, digits = 0)
"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.

Value

A point pattern object, of the same class as x.

Details

These functions are methods for the generic function round. They apply numerical rounding to the spatial coordinates of the point pattern x.

See Also

rounding to determine whether numbers have been rounded. round in the Base package.

Examples

Run this code
  round(cells, 1)

Run the code above in your browser using DataLab