Learn R Programming

BioGeoBEARS (version 0.2.1)

prune_states_list: Cut down the states list according to areas_allowed_mat

Description

Go through a list of states. Remove states that represent areas disallowed according to areas_allowed_mat. It is assumed (crucial!) that the areas in the states_list, and in the areas_allowed_mat, have the same order.

Usage

prune_states_list(states_list_0based_index, areas_allowed_mat)

Arguments

states_list_0based_index
A states_list, 0-based, e.g. from rcpp_areas_list_to_states_list
areas_allowed_mat
The matrix of area combinations allowed (represented by 1s)

Value

states_list_0based_index_new A 0-based list of allowed states/ranges

References

http://phylo.wikidot.com/matzke-2013-international-biogeography-society-poster

Matzke_2012_IBS

See Also

rcpp_areas_list_to_states_list

Examples

Run this code
test=1

Run the code above in your browser using DataLab