Spgc2Biogeobears: Geography Input for BioGeoBEARS

Spgc2BioGeoBEARSR Documentation

Geography Input for BioGeoBEARS

Description

Convert an object of the class spgeoOUT in the format to be used as geography input for BioGeoBEARS.

Usage

Spgc2BioGeoBEARS(x, phyl = NULL, file = NULL, true.areas = TRUE, true.species = TRUE)

Arguments

x

an object of the class 'spgeoOUT'

phyl

an object of the class phylo. An optional phylogeny to be used with BioGeoBEARS, to align species.

file

character. The complete path and filename to the outputfile.

true.areas

logical. If TRUE, areas with 0 species are removed from the matrix. Default = TRUE.

true.species

logical. If TRUE, species not occurring in any area are removed from the matrix. Default = TRUE.

Details

This will create a file in the working directory.

Value

A file in the working directory and a list.

Note

See https://github.com/azizka/speciesgeocodeR/wiki for more details and tutorials.

Author(s)

Alexander Zizka, Ruud Scharn

Examples

## Not run: 
data(lemurs)
data(mdg_poly)

outp <- SpGeoCod(lemurs, mdg_poly)
conv <- Spgc2BioGeoBEARS(outp)

## End(Not run)

azizka/speciesgeocodeR documentation built on Sept. 5, 2023, 3:45 a.m.