db.distance {RGeostats}R Documentation

Calculate distances within Db(s)

Description

Calculate distances within Db(s)

Usage

db.distance(db1, db2=NA, mode=0, nvar.iso=0)

Arguments

db1

The db-class first structure where the samples are read.

db2

The db-class second structure where the samples are read. If the file is not specified, 'db2' is set equal to 'db1'; then the distances are considered EXCLUDING the comparison between a sample and itself.

mode

Type of returned information:

  • 0 The minimum and maximum distance is returned

  • 1 The array of distances, for each valid sample of 'db2' to the closest valid sample of 'db1'

  • 2 The array of distances between all valid samples of 'db2' and all valid samples of 'db1'.

nvar.iso

This argument defines the number of variables (with locator Z) that must be defined simultaneously in 'db1' or 'db2': then the sample is considered as 'valid'.

Value

The result depends on the definition of the input Dbs.


[Package RGeostats version 14.0.10 Index]