xyTable
Tabulate repeated x-y points

### Description

Given two dimensional points, returns the unique points and their counts.

### Usage

    xyTable(x, y = NULL, digits)

### Arguments

x | a numeric vector specifiying the x coordinates of the input points or, if y is omitted, any of the formats accepted by xy.coords: a numeric vector. a 2-column matrix. a complex vector. a list with components x and y. a ts object.
y | a numeric vector specifying the y coordinates of the input points. If it is omitted, it is derived from x by calling xy.coords(x).
digits | if given (and not NULL), the x and y coordinates are replaced by signif(x, digits) and signif(y, digits) so close points are considered the same.

Value
returns a list giving the unique points and the number of times each is repeated.

x | the x coordinates of the unique points in the input.
y | the y coordinates of the unique points in the input.
number | the number of times each [x,y] pair is repeated.

See Also
xy.coords
Examples

    xyTable(c(5,5,6,6,6,6), c(12,12,13,14,14,14))

Package grDevices version 6.1.5-18
Package Index