ezSplit | R Documentation |
The split
vector needs to divide the x
vector into pieces of equal lengths. The split is removed from the original input.
ezSplit(x, split, ...)
x |
the character vector to be split element-wise. |
split |
a character vector defining with what to split. |
... |
additional arguments to be passed to |
Returns a matrix containing the split vector and x
as the rownames.
Rehrauer, Hubert
Schmid, Peter
strsplit
ezSplit(letters[1:5], "b")
ezSplit(rep("abcde", 4), letters[1:4])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.