mid | R Documentation |
Inspired by the Excel function with the same name.
mid(string, start, length)
string |
a vector of strings |
start |
a vector of starting points (will be recycled, if needed) |
length |
a vector of lengths (will be recycled, if needed) |
The length
characters of each value in string
starting with the start
character.
mid('lazy dog', 3, 2)
mid('lazy dog', 6, 3)
mid(c('lazy dog', 'blue dog'), 2, 2)
mid(c('lazy dog', 'red frog'), 6, c(3, 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.