Split a vector of composite names into a matrix of simple names.
Usage
strsplit2(x, split, ...)
Arguments
x
character vector
split
character to split each element of vector on, see strsplit
...
other arguments are passed to strsplit
Value
A list containing components
Name
character vector of the same length as x contain first splits of each element
Annotation
character vector of the same length as x contain second splits of each element
Details
This function is the same as strsplit except that the output value is a matrix instead of a list.
The first column of the matrix contains the first component from each element of x, the second column contains the second components etc.
The number of columns is equal to the maximum number of components for any element of x.
The motivation for this function in the limma package is handle input columns which are composites of two or more annotation fields.