split_mult: split columns in multiple by regex

Description Usage Arguments See Also

View source: R/reveal.R

Description

Reveal helper. cuts column into multiple in reveal

Usage

1
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


tjebo/eye documentation built on Jan. 24, 2022, 8:34 p.m.