Description Usage Arguments See Also Examples
View source: R/prefix_replace.R
Convenience function for replacing prefixes
1 2 3 4 | prefix_replace(x, prefix, replace)
## S3 method for class 'data.table'
prefix_replace(x, prefix, replace)
|
x |
object to have prefix replaced |
prefix |
string or regex without the separator |
replace |
string used as replacement |
dp.misc::prefix
base.tools::nm_prefix
stringr.tools::str_prefix
1 2 | dt <- data.table( i.a = 1:5, ii.b = 1:5)
prefix_replace( dt, "i", "X." )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.