Description Usage Arguments Value Author(s) Examples
View source: R/text-functions.R
This function compares the contents of two vectors of character strings: how many elements are present in both vectors, how many are only present in each one, etc., and lists the elements that are only present in one of the vectors.
1 | strcomp(text1, text2)
|
text1, text2 |
two character vectors to be compared |
A list containing the following elements:
matchTable
: a cross table of all the unique elements of the concatenation of text1 and text2, indicating whether they belong to text1 and/or to text2.
matchOneInTwo
: a table of the elements of text1 according to how many times they are present in text2.
matchTwoInOne
: a table of the elements of text2 according to how many times they are present in text1.
tabOneInTwo
: a table of the elements of text1 according to whether they are present in text2.
tabTwoInOne
: a table of the elements of text2 according to whether they are present in text1.
oneNotInTwo
: a vector containing the elements of text1 not present in text2.
twoNotInOne
: a vector containing the elements of text2 not present in text1.
Julien Boelaert jubo.stats@gmail.com
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.