compute_rwr: Produce rarity-weighted richness values for each site.

Description Usage Arguments Details Value

View source: R/compute_rwr.R

Description

Produce rarity-weighted richness values for each site.

Usage

1
compute_rwr(data, nselect)

Arguments

data

a presence/absence matrix with sites across the rows and species down the columns. Should include site names for the rows.

nselect

number of sites to select to maximize the rarity-weighted richness score.

Details

This function selects sites based on rarity-weighted richness.

Value

Returns a list including a vector of the selected sites, an integer number of species included, and a vector of rarity-weighted richness scores for the selected sites.


pmckenz1/mcpdiversity documentation built on May 25, 2019, 9:25 a.m.