chrvec2dl {VBTree} | R Documentation |
Convert character vector to a double list
Description
Structurize a character vector to a double list. Layers in the double list will be determined by the given pattern.
Usage
chrvec2dl(x, splt = "-")
Arguments
x |
a character vector to be converted. |
splt |
a string pattern to make defination for spliting each layer of double list. |
Value
return a character double list splited by defined pattern, the default pattern is "-".
Examples
#example using default dataset:
charvector <- colnames(datatest)
chrvec2dl(charvector, "-")
[Package VBTree version 0.1.1 Index]