Learn R Programming

speciesgeocodeR (version 1.0-4)

CoExClass: Species Coexistence Matrices in Given Areas.

Description

Add a coexistence matrix to an object of the class spgeoOUT created by SpGeoCod.

Usage

CoExClass(x)

Arguments

x
An object of the class spgeoOUT, where the coexistence matrix shall be added

Value

An object of the class spgeoOUT, including a coexistence matrix which can be addressed with via the “coexistence_classified” slot. The matrix will have the same dimensions as there are input species and will give the percent of occurrence points of each species (row) with all other species (columns) given the input polygons.

Examples

Run this code
data(lemurs)
data(mdg_poly)

inp <- ReadPoints(lemurs, mdg_poly)
outp <- SpGeoCodH(inp)
outpcoex <- CoExClass(outp)
outpcoex$coexistence_classified

Run the code above in your browser using DataLab