Learn R Programming

gdm (version 1.6.0-2)

createsitepair: Create Site-Pair Table

Description

Creates a site-pair table from the lower half of a site-by-site distance (dissimilarity) matrix. This function is called from the formatsitepair function and not needed by the user.

Usage

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

Value

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

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 environmental 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 used in model fitting.

custWeights

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

See Also

formatsitepair