Learn R Programming

BioGeoBEARS (version 0.2.1)

get_simstates: Load the simulation information from an underscore delimited text string.

Description

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.

Usage

get_simstates(simhist_row)

Arguments

simhist_row
A row from a table, which must have a column named simulated_states_by_node_txt.

Value

simulated_states_by_node A numeric vector of 0-based state indices.

References

http://phylo.wikidot.com/matzke-2013-international-biogeography-society-poster

Matzke_2012_IBS

See Also

read.table

Examples

Run this code
testval=1

Run the code above in your browser using DataLab