removeNumbers {tm} | R Documentation |
Remove Numbers from a Text Document
Description
Remove numbers from a text document.
Usage
## S3 method for class 'character'
removeNumbers(x, ucp = FALSE, ...)
## S3 method for class 'PlainTextDocument'
removeNumbers(x, ...)
Arguments
x |
a character vector or text document. |
ucp |
a logical specifying whether to use Unicode character
properties for determining digit characters. If |
... |
arguments to be passed to or from methods;
in particular, from the |
Value
The text document without numbers.
See Also
getTransformations
to list available transformation
(mapping) functions.
https://unicode.org/reports/tr44/#General_Category_Values.
Examples
data("crude")
crude[[1]]
removeNumbers(crude[[1]])
[Package tm version 0.7-13 Index]