strip_common_substring | R Documentation |
eg; .txt
in all filesnames, or <experiment data><samplename>
strip_common_substring(s)
s |
array of strings |
## Not run: strip_common_substring(s = unique(peptides$sample_id))
## Not run: strip_common_substring(s = c("sample_a.txt","sample_b1.txt","sample_xyz.txt"))
## Not run: strip_common_substring(s = c("","sample_b1.txt","sample_xyz.txt"))
## Not run: strip_common_substring(s = c("sample.txt","sample_b1.txt","sample_xyz.txt"))
## Not run:
assertthat::are_equal(
strip_common_substring(c("sample_a.txt","sample_b1.txt","sample_xyz.txt")),
c("a","b1","xyz")
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.