createsitepair: Creates Site-Pair Table

Description Usage Arguments Value Note Author(s)

View source: R/GDM_Table_Funcs.R

Description

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

Usage

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

Arguments

dist

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

spdata

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

envInfo

Input environmental data, the same as the predData input to the formatgdmData function.

dXCol

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

dYCol

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

siteCol

site column, taken from either the species or environmental tables

predMatrices

Prediction matrices to be added to the site-pair table

weightsType

the method of determining the site-pair weights

custWeights

custom wieghts, as a vector, if given

Value

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

Note

This function is called from the gdm.formatsitepair function, and the user should not need to access directly.

Author(s)

Matthew Fitzpatrick <mfitzpatrick@al.umces.edu>, Matthew Lisk <mlisk@al.umces.edu>, others


Gdm01 documentation built on May 2, 2019, 4:54 p.m.