Description Usage Arguments Value Examples
Set corpus meta-data variables from a data frame.
1 | set_corpus_variables(corpus, dset)
|
corpus |
A |
dset |
A |
A Corpus
object with meta-data added.
1 2 3 4 5 | file <- system.file("texts", "reut21578-factiva.xml", package="tm.plugin.factiva")
corpus <- import_corpus(file, "factiva", language="en")
dtm <- build_dtm(corpus)
dset <- data.frame(x=1:length(corpus))
corpus <- set_corpus_variables(corpus, dset)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.