Description Usage Arguments Examples
How often a term occurs across all of the documents.
1 2 3 4 | lexical_frequency(corpus, word)
## S3 method for class 'corpus'
lexical_frequency(corpus, word)
|
corpus |
A corpus, as returned vy |
word |
Word to check frequency. |
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
init_textanalysis()
# build documents
doc1 <- string_document("First document.")
doc2 <- string_document("Second document.")
# build corpus
corpus <- corpus(doc1, doc2)
lexical_frequency(corpus, "document")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.