Description Usage Arguments Value See Also Examples
Create content transformers, i.e., functions which modify the content of an R object.
1 | content_transformer(FUN)
|
FUN |
a function. |
A function with two arguments:
x
an 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.
1 2 3 4 |
Loading required package: NLP
<<PlainTextDocument>>
Metadata: 15
Content: chars: 527
function (x, ...)
{
content(x) <- FUN(content(x), ...)
x
}
<environment: 0x271fee0>
attr(,"class")
[1] "content_transformer" "function"
<<PlainTextDocument>>
Metadata: 15
Content: chars: 520
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.