Given a pattern, it splits and returns the slot of interest.
ss(x, pattern, slot = 1, ...)
A vector with the information extracted from x
.
## Some example info with two variables separated by a _
info <- c("DLPFC_polyA", "DLPFC_RiboZero")
ss(info, "_", 1)
#> [1] "DLPFC" "DLPFC"
ss(info, "_", 2)
#> [1] "polyA" "RiboZero"
## Example where we use the ... argument
ss("a.b.c", ".", slot = 1, fixed = TRUE)
#> [1] "a"