GeoCor {GeoRange} | R Documentation |
Function to calculate the correlation coefficient for pairwise comparisons between geographic range measures
Description
Function to calculate the correlation coefficient for pairwise comparisons between geographic range measures
Usage
GeoCor(GeoRange, Start = 1, method = "pearson")
Arguments
GeoRange |
- A matrix of taxa by geographic range calculations, as from the GeoRange_MultiTaxa function |
Start |
- The column index value where geographic range measures to be compared starts |
method |
- The correlation method to be used. See the cor() function for available inputs |
Value
Returns a sparse pairwsie matrix of correlation coefficients
Note
The correlation calculation uses the "pairwise.complete.obs" option from the cor function so that only complete pairs of observations are used, pairs containing an NA are ignored
See Also
See the velociraptr package for details of the downloadPBDB() function
Examples
## Not run:
data(BivalvePBDB)
BivalveMatrix<-CoordList_PBDB(BivalvePBDB)
testBivalve<-GeoRange_MultiTaxa(OccMatrix=BivalveMatrix,TaxaStart=3)
GeoCor(testBivalve,Start=1,method="kendall")
## End(Not run)
[Package GeoRange version 0.1.0 Index]