parse_svec | R Documentation |
Parse Text Into Numeric Vectors
parse_svec(text, sep = ",", connect = "-:|", sort = FALSE, unique = TRUE)
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 |
a numeric vector. For example, "1-3" returns c(1, 2, 3)
deparse_svec
parse_svec('1-10, 13:15,14-20')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.