Description Usage Arguments Details Value Note Author(s) References See Also Examples
View source: R/calc_loglike_sp_v01.R
If the user has specified a matrix stating which areas are allowed to be connected (and thus have a species with a range in both areas), this function checks if the input list of areas (as a 0-based vector of areas) in a single state/geographic range is consistent with the areas-allowed matrix.
1 2 | check_if_state_is_allowed(state_0based_indexes,
areas_allowed_mat)
|
state_0based_indexes |
The input state is a 0-based vector of area indices. |
areas_allowed_mat |
A matrix (number of areas x number of areas) with 1s indicating allowed connections between areas, and 0s indicating disallowed connections. |
This function may be used by e.g.
apply
.
TRUE
or FALSE
Go BEARS!
Nicholas J. Matzke matzke@berkeley.edu
http://phylo.wikidot.com/matzke-2013-international-biogeography-society-poster
Matzke_2012_IBS
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.