ss | R Documentation |
Given a pattern, it splits and returns the slot of interest.
ss(x, pattern, slot = 1, ...)
x |
Passed to argument |
pattern |
Passed to argument |
slot |
An integer specifying which element of the resulting list to return. |
... |
Additional arguments passed to strsplit. |
A vector with the information extracted from x
.
Andrew E Jaffe
## Some example info with two variables separated by a _
info <- c("DLPFC_polyA", "DLPFC_RiboZero")
ss(info, "_", 1)
ss(info, "_", 2)
## Example where we use the ... argument
ss("a.b.c", ".", slot = 1, fixed = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.