| content_transformer | R Documentation |
Create content transformers, i.e., functions which modify the content of an R object.
content_transformer(FUN)
FUN |
a function. |
A function with two arguments:
xan R object with implemented content getter
(content) and setter (content<-)
functions.
...arguments passed over to FUN.
tm_map for an interface to apply transformations to corpora.
data("crude")
crude[[1]]
(f <- content_transformer(function(x, pattern) gsub(pattern, "", x)))
tm_map(crude, f, "[[:digit:]]+")[[1]]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.