View source: R/InternalSimpleClass_function.R
UserInputAssessment | R Documentation |
This function assesses whether user inputs are as expected and it not the function throws an error
UserInputAssessment( LatLongs, RefDistMat = NULL, RefData = NULL, DistVec = NULL, Method )
LatLongs |
a matrix of n rows by 2 columns where n is the number of reference specimens in your dataset and the columns are Latitude and Longitude values in that order. These latitude-longitude coordinates should be of the locations of the reference specimens. |
RefDistMat |
is a square matrix of pairwise distances among all reference specimens. |
RefData |
is a matrix of Reference specimen data where the rows are the individual reference specimens and the columns are the variables in the same order as the TargetData vector. |
Method |
determines what kind of correlation coefficient should be used, either "Spearman" or "Pearson". Spearman's ranked correlation coefficient does not assume a linear relationship between geographic and trait distances, whereas Pearson's coefficient does. |
Ardern Hulme-Beaman
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.