Description Usage Arguments Details Value Note Author(s) References See Also Examples
View source: R/BioGeoBEARS_basics_v1.R
This is a utility function for
make_relprob_txtmatrix_sp1
.
1 | paste_rows_without_zeros(tmpmat)
|
tmpmat |
A cladogenesis/speciation probability matrix (text-based) to collapse each row of. |
Convert e.g.:
A|A A|B A|C A|A,B A|B,C A|A,C
A|A,B,C
A s j j 0 0 0 0
B 0 j 0 0 0
0 0
C 0 0 j 0 0 0 0
A,B 0 v 0 b1 0
0 0
B,C 0 0 0 0 j 0 0
A,C 0 0 v 0 0
b1 0
A,B,C 0 0 0 0 v 0 b1
...to...
A B C A,B B,C A,C A,B,C
"s+j+j" "j"
"j" "v+b1" "j" "v+b1" "v+b1"
tmpcol
A list containing each row, concatenated
Go BEARS!
Nicholas J. Matzke matzke@berkeley.edu
http://phylo.wikidot.com/matzke-2013-international-biogeography-society-poster
Matzke_2012_IBS
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.