Learn R Programming

BioGeoBEARS (version 0.2.1)

process_optim: Extract optim results to a row

Description

After running an ML (maximum likelihood) search with optim, optim returns a list with a variety of objects. It is often handy to have the parameter values, log-likelihood, etc., extracted to a table for comparison with other optimization runs. process_optim does this.

Usage

process_optim(optim_results, max_num_params = NULL)

Arguments

optim_results
A results object from optim
max_num_params
Specify the number of parameters, if known. If NULL, the code will try to guess.

Value

tmprow3 A row holding the optim results, which can then be added to a table with rbind.

References

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

Matzke_2012_IBS

See Also

optim

Examples

Run this code
testval=1
# Any optim() for a biogeography scenario would take too long to run for R CMD check.

Run the code above in your browser using DataLab