View source: R/general.purpuse.utilities.R
splitSub | R Documentation |
Cuts part of delimited text analogous to bash cut
splitSub(x, del, inx, fixed = TRUE, collapse = TRUE, simplify = TRUE)
x |
character vector to cut from |
del |
delimiter |
inx |
indexes of items to return |
fixed |
logical, whether del is fixed (to be passed to strsplit) |
collapse |
logical, whether to collapse selected items with same delimeter. |
simplify |
logical, whether output should be simplified (to be passed to sapply). |
character vector or
splitSub(c('a,b','d,c'),',',2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.