str_rm_non_alphanumeric {textTools} | R Documentation |
Remove and replace non-alphanumeric characters from strings.
Description
Remove and replace non-alphanumeric characters from strings.
Usage
str_rm_non_alphanumeric(x, replacement = " ")
Arguments
x |
A vector or string. |
replacement |
A string to replace the numbers with, defaults to " ". |
Value
x, with non-alphanumeric (A-z, 0-9) characters removed/replaced.
Examples
str_rm_non_alphanumeric(c("test 67890 * % $ "))
[Package textTools version 0.1.0 Index]