txt_remove_: Remove prefixed underscore

View source: R/utils.R

txt_remove_R Documentation

Remove prefixed underscore

Description

Remove prefixed underscore unicode character 'LOWER ONE EIGHTH BLOCK' (U+2581)

Usage

txt_remove_(x, replacement = "")

Arguments

x

a character vector

replacement

character string how to replace the underscore. Defaults to the empty string.

Value

x where the prefixed underscore is removed

Examples

x <- c("\u2581word", "hello", "_regularunderscore")
x
txt_remove_(x)

sentencepiece documentation built on Nov. 13, 2022, 5:05 p.m.