Split Composite Names
Split a vector of composite names into a matrix of simple names.
strsplit2(x, split, ...)
x |
character vector |
split |
character to split each element of vector on, see |
... |
other arguments are passed to |
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.
A list containing components
Name |
character vector of the same length as |
Annotation |
character vector of the same length as |
Gordon Smyth
An overview of LIMMA functions for reading data is given in 03.ReadingData.
x <- c("AA196000;actinin, alpha 3", "AA464163;acyl-Coenzyme A dehydrogenase, very long chain", "3E7;W15277;No Annotation") strsplit2(x,split=";")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.