ore_split | R Documentation |
This function breaks up the strings provided at regions matching a regular
expression, removing those regions from the result. It is analogous to the
strsplit
function in base R.
ore_split(regex, text, start = 1L, simplify = TRUE)
regex |
A single character string or object of class |
text |
A vector of strings to match against. |
start |
An optional vector of offsets (in characters) at which to start
searching. Will be recycled to the length of |
simplify |
If |
A character vector or list of substrings.
ore_search
ore_split("-?\\d+", "I have 2 dogs, 3 cats and 4 hamsters")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.