Description Usage Arguments Details See Also Examples
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 coersion to a data.frame
.
1 2 3 4 5 |
x |
a vector of strings. |
sep |
the delimiter / |
fixed |
logical. If |
perl |
logical. Should perl-compatible regexps be
used? Ignored when |
useBytes |
logical. If |
names |
optional: a vector of names to pass to the
returned |
Note that the preferred method for reading text data with a
single, one character delimiter is through
read.table(text=...)
or data.table::fread
;
however, this function is helpful in the case of
non-regular delimiters (that you wish to specify with a
regex)
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.