Compute the midpoint of species' geographic ranges

Description

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

Usage

1
lets.midpoint(pam, planar = FALSE)

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.

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) 

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.