Description Usage Arguments Value
Transform the documents stored in a dataframe in a bag of words.
1 2 | bow_from_doclist(x, language = "english", rm_words = NULL,
min_nchar = 3, match_term = NULL)
|
x |
character. Content to transform in a bag of words. |
language |
character string. Language for the stopwords to remove. |
rm_words |
character vector. List of words (or n-tokens) to remove. |
min_nchar |
integer. Number of characters below which the word is removed. |
match_term |
dataframe. Table with two variables: "word" for the string in the content and "term" for its categorization. Match words to force desired completions. |
A tibble with the id of the document, words, stems, lemmas, terms, counts, and proportions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.