sub_crap | R Documentation |
This function takes a character vector where each element is
roughly in the form of a UniProt header e.g. "sp|XXXXXX|YYYY_YYYY Text goes here"
and substitutes a cRAP number in place of the first |
symbol, e.g.
"sp|cRAP001|XXXXXX|YYYY_YYYY Text goes here"
.
sub_crap(x, start = 1, width = 3)
x |
|
start |
|
width |
|
Returns a character vector
the same length as x.
# basic use
sub_crap(c("|sometext|", "|moretext|"))
# start from a different number
sub_crap(c("|sometext|", "|moretext|"), start = 88)
# increase number width
sub_crap(c("|sometext|", "|moretext|"), start = 1111, width = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.