Description Usage Arguments Examples
View source: R/wordly_functions.R
Given two vectors of words, this function uses the diffr lib and displays a comparison between them.
1 2 | show_diffr(word_vec_1, word_vec_2, title_1 = "Text 1",
title_2 = "Text 2")
|
word_vec_1 |
The first vector of words to be compared. |
word_vec_2 |
The second vector of words to be compared. |
title_1 |
The title given to the first vector of words. Defaults to "Text 1". |
title_2 |
The title given to the second vector of words. Defaults to "Text 2". |
1 | show_diffr(c("cat", "dog", "puppy"), c("cat", "dog", "Puppy", "kitten"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.