
Last chance! 50% off unlimited learning
Sale ends in
Remove numbers from a text document.
# S3 method for character
removeNumbers(x, ucp = FALSE, …)
# S3 method for PlainTextDocument
removeNumbers(x, …)
a character vector or text document.
a logical specifying whether to use Unicode character
properties for determining digit characters. If FALSE
(default), characters in the ASCII [:digit:]
class (i.e., the
decimal digits from 0 to 9) are taken; if TRUE
, the
characters with Unicode general category Nd
(Decimal_Number).
arguments to be passed to or from methods;
in particular, from the PlainTextDocument
method to the
character
method.
The text document without numbers.
getTransformations
to list available transformation
(mapping) functions.
# NOT RUN {
data("crude")
crude[[1]]
removeNumbers(crude[[1]])
# }
Run the code above in your browser using DataLab