parse_svec {dipsaus} | R Documentation |
Parse Text Into Numeric Vectors
Description
Parse Text Into Numeric Vectors
Usage
parse_svec(text, sep = ",", connect = "-:|", sort = FALSE, unique = TRUE)
Arguments
text |
string with chunks, e.g. |
sep |
default is ",", character used to separate chunks |
connect |
characters defining connection links for example "1:10" is the same as "1-10" |
sort |
sort the result |
unique |
extract unique elements |
Value
a numeric vector. For example, "1-3" returns c(1, 2, 3)
See Also
Examples
parse_svec('1-10, 13:15,14-20')
[Package dipsaus version 0.2.9 Index]