strsplit2: Split Composite Names

View source: R/statistics.R

strsplit2R Documentation

Split Composite Names

Description

Split Composite Names

Usage

strsplit2(x, split, colnames = NULL, ...)

Arguments

x

character vector

split

character to split each element of vector on, see strsplit

colnames

colnames for the result

...

other arguments are passed to strsplit

Value

data.frame

Examples

strsplit2(c("a;b", "c;d"), ";", colnames = c("col1", "col2"))

pcutils documentation built on June 26, 2024, 1:06 a.m.