show_diffr: Show the difference between two vectors of words.

Description Usage Arguments Examples

View source: R/wordly_functions.R

Description

Given two vectors of words, this function uses the diffr lib and displays a comparison between them.

Usage

1
2
show_diffr(word_vec_1, word_vec_2, title_1 = "Text 1",
  title_2 = "Text 2")

Arguments

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".

Examples

1
show_diffr(c("cat", "dog", "puppy"), c("cat", "dog", "Puppy", "kitten"))

tomathon-io/wordly documentation built on June 15, 2020, 12:41 a.m.