Learn R Programming

sentencepiece (version 0.2.3)

txt_remove_: Remove prefixed underscore

Description

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

Usage

txt_remove_(x, replacement = "")

Value

x where the prefixed underscore is removed

Arguments

x

a character vector

replacement

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

Examples

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

Run the code above in your browser using DataLab