Learn R Programming

pcutils (version 0.2.8)

strsplit2: Split Composite Names

Description

Split Composite Names

Usage

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

Value

data.frame

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

Examples

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

Run the code above in your browser using DataLab