duplicate {RGeostats}R Documentation

Look for duplicates

Description

Look for duplicates within a DB or between two DBs

Usage

duplicate(db1, db2 = NA, dist = 0, opt.code=0, tolcode=0, print = TRUE)

Arguments

db1

Name of the first db-class

db2

Name of the second db-class

dist

Vector giving the minimum distance. If a single value if given, the same minimum distance is used for all space directions

opt.code

Array containing the option concerning the use of the code. This option defines the strategy for the code usage when considering a pair of samples:

  • 0 : a pair of samples is compared whatever their codes (if active)

  • 1 : a pair of samples is tested for duplicate if the code is active in the data bases and the codes of the two samples are closer than tolcode

  • 2 : a pair of samples is tested for duplicate only if the codes of the two samples are different

tolcode

Array giving the maximum distance between the codes of the two samples.

print

Print statistics on the duplicates when TRUE

Value

Create a selection in the second db-class. Note that this selection is added only if the selection has masked off some samples.


[Package RGeostats version 14.0.10 Index]