Description Usage Arguments Value Note Author(s) References See Also Examples
View source: R/BioGeoBEARS_simulate_v1.R
If the simulated states are stored in a big text file, it can be useful to store them as a single string in a single cell per row, so that the number of columns doesn't have to change with each different-sized tree. This function extracts the simulated states from this format.
1 | get_simstates(simhist_row)
|
simhist_row |
A row from a table, which must have a
column named |
simulated_states_by_node
A numeric vector of
0-based state indices.
Go BEARS!
Nicholas J. Matzke matzke@berkeley.edu
http://phylo.wikidot.com/matzke-2013-international-biogeography-society-poster
Matzke_2012_IBS
1 | testval=1
|
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.