Learn R Programming

gdm (version 1.3.11)

createsitepair: Creates Site-Pair Table

Description

Takes the lower half of a site-by-site distance (dissimilarity) matrix and creates the site-pair table. This function is called from the formatsitepair function and should not need to be called directly by the user.

Usage

createsitepair(dist, spdata, envInfo, dXCol, dYCol, siteCol, weightsType, custWeights)

Arguments

dist

The lower half of a site-by-site distance (dissimilarity) matrix, provided by the formatsitepair function.

spdata

Input species data, the same as the bioData input to the formatsitepair function.

envInfo

Input environmental data. Only accepts data tables as input. If the environmetal data for formatsitepair are rasters, the data would have been extracted into table format within formatsitepair.

dXCol

Input x coordinate, the same as the XColumn input to the formatsitepair function.

dYCol

Input y coordinate, the same as the YColumn input to the formatsitepair function.

siteCol

Site column, taken from either the species or environmental tables.

weightsType

The method of determining the site-pair weights.

custWeights

Custom wieghts, as a vector, if given by the user.

Value

A site-pair table with appropriate distance (dissimilarity) and weight columns used for fitting GDM.

See Also

formatsitepair