Learn R Programming

cooccur (version 1.3)

pair: Function to examine co-occurrence patterns for an individual species.

Description

Extracts results for a single species from a cooccur object.

Usage

pair(mod, spp, all = FALSE)

Arguments

mod
Object of class cooccur.
spp
Name of the species, or the number assigned to it.
all
Logical. If TRUE then all, not just significant, results are returned.

Value

Same as prob.table() but for only one species.

See Also

prob.table

Examples

Run this code
#data(finches)
#cooccur.finches <- cooccur(mat=finches,
#			   type="spp_site",
#			   thresh=TRUE,
#			   spp_names=TRUE)
#pair(cooccur.finches,"Geospiza fortis",all=TRUE)

Run the code above in your browser using DataLab