Given the identity of the states/geographic ranges on the
left branch (
Lstates), right branch
Rstates), and ancestral areas
ancareas_txt_tmp), construct the (text version)
of the row of transition probabilities. This means that
each nonzero cell gets a v for a vicariance event,
a y for a sympatric speciation/range-copying
event, a j for a founder-event/jump speciation
event, and an s for a sympatric-subset event.
A string listing the possible left states,
which will be split by
A string listing the possible right
states, which will be split by
A string listing the possible
ancestral states, which will be split by
The character to split on.
is no reason that a vicariance event could happen, e.g.
ABC–>AB, BC. This is disallowed in
This function is utilized by
other functions (e.g. ) in an attempt to speed up
calculation over rows. However, processing of text
apply will never be fast
enough for large matrices; see
cladoRcpp for optimized
This text-based matrix later gets evaluated by other
functions to calculate the numerical probabilities.
I.e., if j=0 and the other forms of speciation have
weights equal to each other, this is the
returncell The text specifying the type of
Nicholas J. Matzke email@example.com
Loading required package: rexpokit 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.