View source: R/str_split_extract_element.R
str_split_extract_element | R Documentation |
str_split
Function to extract a specific element from str_split
str_split_extract_element(x, pattern, n = Inf, element = 1, as_character = T)
x |
Input string |
pattern |
Pattern to split string on |
n |
Number of pieces to return. Default (Inf) uses all possible split positions |
element |
Element of split string to return |
as_character |
Should the string be returned as a character? |
Shona Wilde
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.