str_mid | R Documentation |
Returns a string containing a specified number of characters from a string
str_mid(text, idx_start, qty_characters = NA)
text |
The string you want the get a piece of |
idx_start |
Character position in string at which the part to be taken begins. If start is greater than the number of characters in string, NA will be returned. |
qty_characters |
If omitted or if there are fewer than length characters in the text (including the character at start), all characters from the start position to the end of the string are returned. |
A string
str_mid(text = "A long, long time ago", idx_start = 89)
str_mid(text = "A long, long time ago", idx_start = 9, qty_characters = 9)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.