Learn R Programming

GeoRange (version 0.1.0)

GeoCor: 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

See Also

See the velociraptr package for details of the downloadPBDB() function

Examples

Run this code

data(BivalvePBDB)
BivalveMatrix<-CoordList_PBDB(BivalvePBDB)
testBivalve<-GeoRange_MultiTaxa(OccMatrix=BivalveMatrix,TaxaStart=3)
GeoCor(testBivalve,Start=1,method="kendall")

Run the code above in your browser using DataLab