split_to_df | R Documentation |
This function takes a vector of strings following a regular
structure, and converts that vector into a data.frame
, split
on that delimiter. A nice wrapper to strsplit()
, essentially
the primary bonus is the automatic coercion to a data.frame
.
split_to_df(x, sep, fixed = FALSE, perl = TRUE, useBytes = FALSE, names = NULL)
x |
a vector of strings. |
sep |
the delimiter / regex you wish to split your strings on. |
fixed |
logical. If |
perl |
logical. Should perl-compatible regexps be used? |
useBytes |
logical. If |
names |
optional: a vector of names to pass to the returned |
strsplit()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.