lets.midpoint: Compute the midpoint of species' geographic ranges

Description Usage Arguments Value Author(s) See Also Examples

View source: R/lets_midpoint.R

Description

Calculate species' distributional midpoint from a presence-absence matrix.

Usage

1
lets.midpoint(pam, planar = FALSE, method = "GM")

Arguments

pam

A presence-absence matrix (sites in the rows and species in the columns, with the first two columns containing the longitudinal and latitudinal coordinates, respectively), or an object of class PresenceAbsence.

planar

Logical, if FALSE the coordinates are in Longitude/Latitude. If TRUE the coordinates are planar.

method

Users can choose between the geographic midpoint (or center of gravity), using the option "GM". Alternatively, the midpoint can be calculated as the point that minimize the distance between all cells of the PAM (center of minimun distance), using the method "CMD".

Value

A data.frame containing the species' names and geographic coordinates (longitude [x], latitude [y]) of species' midpoints.

Author(s)

Fabricio Villalobos & Bruno Vilela

See Also

lets.presab

lets.presab.birds

Examples

1
2
3
4
5
## Not run: 
data(PAM)
mid <- lets.midpoint(PAM)

## End(Not run) 

letsR documentation built on June 20, 2017, 9:08 a.m.