dup.coords {geoR} | R Documentation

## Locates duplicated coordinates

### Description

This funtions takes an object with 2-D coordinates and returns the positions of the duplicated coordinates.

### Usage

    dup.coords(x)
    dup.coords.default(x)
    dup.coords.geodata(x)

### Arguments

`x` | a two column numeric matrix or data frame.

### Value

A list where each component is a vector with the positions or the rownames, if different from `NULL`, of the duplicates coordinates.

### Author(s)

Paulo Justiniano Ribeiro Jr. Paulo.Ribeiro@est.ufpr.br
Peter J. Diggle p.diggle@lancaster.ac.uk.

### See Also

`as.geodata`

### Examples

    ## simulating data
    foo <- grf(30, cov.p=c(1, .3))
    ## forcing some duplicated locations
    foo$coords[4,] <- foo$coords[14,] <- foo$coords[24,] <- foo$coords[2,]
    foo$coords[17,] <- foo$coords[23,] <- foo$coords[8,]
    ## locations the duplicated coordinates
    dup.coords(foo)

[Package geoR version 1.5-7 Index]