| str_parse | R Documentation |
Split character vector, i.e. each element, by a seperator and convert the resulting exploded string into a typed list / data frame of meta information.
str_parse(
x,
ext = NULL,
which = NULL,
types,
names,
as.df = TRUE,
append = TRUE,
...
)
x |
[ |
ext |
[ |
which |
[ |
types |
[ |
names |
[ |
as.df |
[ |
append |
[ |
... |
[any] |
A data frame or a list (depends on as.df).
Other string helpers:
str_to_shortcut()
x = c("char_int10_num10.4", "char_int28_num30.444")
str_parse(x, types = "cin", names = c("character", "integer", "numeric"), split = "_")
str_parse(x, which = 2:3, types = "in", names = c("integer", "numeric"), split = "_")
str_parse(x, which = 2:3, types = "in", names = c("integer", "numeric"),
as.df = FALSE, append = FALSE, split = "_")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.