db.distance {RGeostats}R Documentation

Calculate distances within Db(s)

Description

Calculate distances within Db(s)

Usage

db.distance(db1, db2=NA, flag.var=FALSE)

Arguments

db1

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

db2

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

flag.var

When TRUE, the distances are calculated considering only samples where the variable (locator "z1") is defined.

When FALSE, the distances are calculated using all the samples.

This option is discarded if two Dbs are specified.

Value

The result depends on the definition of the input Dbs.

When only 'db1' is specified ('db2' is left to NA), this function returns a list containing the following elements:

When 'db1' and 'db2' are both specified, the returned argument is the matrix of distances between all active samples of first Db (row) and all active samples of the second Db (column).


[Package RGeostats version 11.1.2 Index]