Description Usage Arguments Examples
Replace matched patterns in bstr sequences by replacements
1 | bstr_replace(bstrobj, pattern, replacement, case_sensitive = FALSE)
|
bstrobj |
bstr class object or character vector |
pattern |
Pattern to look for. |
replacement |
A character vector of replacements or a function. |
case_sensitive |
sensitive to case in pattern (default:FALSE) |
1 2 3 4 5 | bstr_replace("AtGcTaat", "at", "cc")
bstr_replace("AtGcTaat", "at", c("cc", "xx"))
bstr_replace("AtGcTaat", c("at", "gc"), c("cc", "xx"))
bstr_replace("AtGcTaat", c("at", "gc"), c("cc", "xx"), TRUE)
bstr_replace("AtGcTaat", c("at", "gc"), bstr_switch_case)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.