Description Usage Arguments Value Examples
Create a character vector of the cartesian product of two character vectors
1 | CharCartProd(x, y, groupBy = 1)
|
x |
A character vector |
y |
A character vector |
groupBy |
either 1 or 2. Determines which variable gets grouped together in the results. |
A character vector where each element is a concatenation of one element from x and one element from y
1 2 3 4 5 6 | vecOne = letters[1:5]
vecTwo = LETTERS[6:8]
CharCartProd(x = vecOne, y = vecTwo)
CharCartProd(vecTwo, vecOne)
CharCartProd(vecOne, vecTwo, 2)
CharCartProd(vecTwo, vecOne, 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.