Learn R Programming

letsR (version 1.0)

lets.maplizer: Create a matrix summarizing species' attributes

Description

Summarize species atributes per cell in a presence-absence matrix.

Usage

lets.maplizer(x, y, z, func=mean, ras=FALSE)

Arguments

x
A PresenceAbsence object.
y
Species attribute to be considered.
z
Species names in the same order as the attributes.
func
function to summarize the atribute.
ras
If TRUE the raster file will be returned together with the matrix

Value

  • Return a matrix with coordinates and the atributes summarized.

See Also

lets.presab lets.presab.birds

Examples

Run this code
data(PAM)
trait <- runif(32)
resu <- lets.maplizer(PAM, trait, PAM$S, ras=TRUE)
head(resu$Matrix)
plot(resu$raster) ; map(add=T)

Run the code above in your browser using DataLab