Extract information from strings. This is done by splitting the
string by one or multiple delimiters. The split results are wrapped in a
data.frame. Optionally, one can pass column names and/or types for the
parts. E.g. types="cir" converts the first part into character, the
second into integer and the third into real/double.
str_explode(x, split, names = NULL, types = NULL) explode(x, split, names = NULL, types = NULL)
| x | [ |
|---|---|
| split | [ |
| names | [ |
| types | [ |
A data frame.
Other string helpers:
str_parse(),
str_to_shortcut()