View source: R/get_rank_diff.R
get_rank_diff | R Documentation |
Implementation of a simple algorithm to find the difference between two corpora. The relative importance of the terms in tidy_x
are compared to the importance tidy_y
.
get_rank_diff(tidy_x, tidy_y, id = "id", token = "token")
tidy_x |
A data frame created by tidytext::unnest_tokens() |
tidy_y |
A data frame created by tidytext::unnest_tokens() |
id |
string. Name of id variable. Defaults to "id". |
token |
string. Name of token variable. Defaults to "token". |
Returns a data frame.
## Not run: rank_diff <- get_rank_diff(tidy_x, tidy_y, id = "id", token = "token") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.