hutch_map | R Documentation |
Interface to apply (using purrr) transformation functions (also
denoted as mappings) to corpora. This is a slightly modification of the
link[tm]{tm_map}
function.
hutch_map(corpus, FUN, ...)
corpus |
A VCorpus |
FUN |
a transformation function taking a text document (a character vector) as input and returning a text document (a character vector of the same length as the input vector). |
... |
arguments to FUN |
A corpus with FUN applied to each document in x.
data(liu_4h28) corpus <- data2corpus(liu_4h28, 'id', 'Liu') hutch_map(corpus, tolower)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.