GeoCor: Function to calculate the correlation coefficient for...

Description Usage Arguments Value Note See Also Examples

Description

Function to calculate the correlation coefficient for pairwise comparisons between geographic range measures

Usage

1
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

1
2
3
4
5
6
7
## Not run: 
data(BivalvePBDB)
BivalveMatrix<-CoordList_PBDB(BivalvePBDB)
testBivalve<-GeoRange_MultiTaxa(OccMatrix=BivalveMatrix,TaxaStart=3)
GeoCor(testBivalve,Start=1,method="kendall")

## End(Not run)

GeoRange documentation built on May 1, 2019, 8:03 p.m.

Related to GeoCor in GeoRange...