Learn R Programming

textTools (version 0.1.0)

str_rm_non_printable: Remove and replace non-printable characters from strings.

Description

Remove and replace non-printable characters from strings.

Usage

str_rm_non_printable(x, replacement = " ")

Arguments

x

A vector or string.

replacement,

A string to replace the numbers with, defaults to " ".

Value

x, with non-printable characters removed/replaced.

Examples

Run this code
# NOT RUN {
str_rm_non_printable(c("test \n\n\n67890 * % $ "))
# }

Run the code above in your browser using DataLab