Description Usage Arguments Details Value Note Author(s) References See Also Examples
View source: R/BioGeoBEARS_generics_v1.R
This function extracts numbers from a string. Contiguous digits, including decimal points, are made into a single number. A list of numbers is returned.
1 | extract_numbers(tmpstr)
|
tmpstr |
An input string. |
This saves you having to remember the
regexp
/gregexpr
code for this
sort of thing, and makes it much easier to parse numbers
out of the text output of various programs.
x2
The list of numbers
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 | tmpstr = "190Ma - 65Ma"
extract_numbers(tmpstr)
tmpstr = "190.1Ma - 65.5Ma"
extract_numbers(tmpstr)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.