Description Usage Arguments Examples
View source: R/wordly_functions.R
Takes in two documents or two lists of words and creates a matrix of all possible word-by-word combinations. Used primarily by 'leven_dist' function.
1 2 | expand_matrix_text(text_1, text_2, stop_words = NULL,
make_lower = TRUE, rem_punct = TRUE, rem_num = FALSE)
|
text_1 |
The first list of words or document input. |
text_2 |
The second list of words or document input. |
stop_words |
A list of stop words to be used. Defaults to no stop words used (NULL). |
make_lower |
Should text be converted to lower case? Defaults to TRUE. |
rem_punct |
Should punctuation be removed? Defaults to TRUE. |
rem_num |
Should numerics be removed? Defaults to TRUE. |
1 2 | expand_matrix_text(c("duck", "pig", "cat"), c("dog", "cat"))
expand_matrix_text("HEllo I'm me", "hI tHeRe")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.