rounding {spatstat.geom}R Documentation

Detect Numerical Rounding

Description

Given a numeric vector, or an object containing numeric spatial coordinates, determine whether the values have been rounded to a certain number of decimal places.

Usage

rounding(x)

## Default S3 method:
rounding(x)

## S3 method for class 'ppp'
rounding(x)

## S3 method for class 'pp3'
rounding(x)

## S3 method for class 'ppx'
rounding(x)

Arguments

x

A numeric vector, or an object containing numeric spatial coordinates.

Details

For a numeric vector x, this function determines whether the values have been rounded to a certain number of decimal places.

For a point pattern (object of class "ppp") or similar object x containing numeric spatial coordinates, this procedure is applied to the spatial coordinates.

Value

An integer.

Author(s)

Adrian Baddeley Adrian.Baddeley@curtin.edu.au

and Rolf Turner rolfturner@posteo.net

See Also

round.ppp

Examples

   rounding(c(0.1, 0.3, 1.2))
   rounding(c(1940, 1880, 2010))
   rounding(0)
   rounding(cells)

[Package spatstat.geom version 3.2-9 Index]