Description Usage Arguments Value Note Author(s) References See Also Examples
View source: R/BioGeoBEARS_classes_v1.R
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.
1 2 | prune_states_list(states_list_0based_index,
areas_allowed_mat)
|
states_list_0based_index |
A states_list, 0-based,
e.g. from
|
areas_allowed_mat |
The matrix of area combinations allowed (represented by 1s) |
states_list_0based_index_new
A 0-based list of
allowed states/ranges
Go BEARS!
Nicholas J. Matzke matzke@berkeley.edu
http://phylo.wikidot.com/matzke-2013-international-biogeography-society-poster
Matzke_2012_IBS
rcpp_areas_list_to_states_list
1 | test=1
|
Loading required package: rexpokit
Loading required package: SparseM
Attaching package: 'SparseM'
The following object is masked from 'package:base':
backsolve
Loading required package: Rcpp
Loading required package: cladoRcpp
Loading required package: ape
Loading required package: phylobase
Attaching package: 'phylobase'
The following object is masked from 'package:ape':
edges
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.