Learn R Programming

letsR (version 1.0)

lets.field: Create variables based on species geographical ranges

Description

Create species' attributes based on the attribute values of species co-occurring within their ranges.

Usage

lets.field(x, y, z, weigth=TRUE, count=FALSE)

Arguments

x
A PresenceAbsence object.
y
Species attribute to be considered. It must be a numeric attribute.
z
Species names in the same order as the attributes.
weigth
If TRUE the value is weighted by species' range size, if FALSE the value is the mean of all species that cooccur with the species target.
count
Logical, if TRUE a counting window will open.

Details

If the species do not co-occur with any other species NaN will be returned.

See Also

lets.presab.birds lets.presab

Examples

Run this code
data(PAM)
range <- colSums(PAM$P)[-(1:2)]
field <- lets.field(PAM, range, PAM$S, weigth=TRUE)

Run the code above in your browser using DataLab