Description Usage Arguments Details Value Note Author(s) References See Also Examples
View source: R/BioGeoBEARS_basics_v1.R
meval
is a wrapper for eval
, to
allow use in sapply
.
1 | meval(equation_txt)
|
equation_txt |
The text of the equation to run
|
This is an attempt to speed up the use of
eval
; in general use of eval
to convert a text version of a transition matrix to a
numeric version with probabilities is a poor, slow
choice; but it can be useful for examples and display
purposes.
See cladoRcpp
for fast C++
implementations of transition matrix setup.
outval
The numeric result of eval
.
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 | testval=1
d = 0.1
equation_txt = "1*d+1*d"
meval(equation_txt)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.