edit_phrase | R Documentation |
The edit_phrase
is a wrapper around the R base functions sub
and gsub
to change the phrase
in a 'musical phrase' or a 'track'
edit_phrase(obj, pattern, replacement, all = T)
obj |
Object to change. Only objects of class |
pattern |
Character string to be used as pattern in |
replacement |
Character string to be used as replacement in |
all |
Boolean indicating if all patterns found should be replaced (when TRUE) or only the first (when FALSE) |
an object of the same type as obj
with possibly (i.e. when the pattern is found) a replaced 'phrase'
See the documentation for the use of sub and gsub.
## Not run: #include a test function ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.