split_mult {eye} | R Documentation |
split columns in multiple by regex
Description
Reveal helper. cuts column into multiple in reveal
Usage
split_mult(x, col, pattern = "_", into = NULL, prefix = "var", sep = "")
Arguments
x |
data frame |
col |
character |
pattern |
regex by which to split |
into |
names of columns - character vector of length of n splits |
prefix |
if into not specified, names created "prefix(sep)index" |
sep |
separator of prefix and index |
See Also
modified from this thread on stackoverflow
[Package eye version 1.2.1 Index]