UserInputAssessment: Internal function for assessment of user input

View source: R/InternalSimpleClass_function.R

UserInputAssessmentR Documentation

Internal function for assessment of user input

Description

This function assesses whether user inputs are as expected and it not the function throws an error

Usage

UserInputAssessment(
  LatLongs,
  RefDistMat = NULL,
  RefData = NULL,
  DistVec = NULL,
  Method
)

Arguments

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.

Author(s)

Ardern Hulme-Beaman


ArdernHB/GeoOrigins documentation built on Nov. 19, 2022, 10:21 a.m.