View source: R/01-vec_character.R
str_replaceByPrefix | R Documentation |
按前缀进行文本保留,其他文本进行替代
str_replaceByPrefix(
x = c("G01", "G03", "GS05", "124"),
prefix = "G",
value = ""
)
x |
向量 |
prefix |
保存前缀 |
value |
替代值 |
返回替代后的向量
str_replaceByPrefix()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.