combi | R Documentation |
Numeric codes for unique combination of vectors.
combi(...)
... |
|
numeric
x <- c("A", "B", "A", "C", "B", "B")
y <- c("X", "X", "Z", "Z", "X", "Z")
combi(x, y)
# The code above is equivalent to but quicker than the one below.
z <- paste0(y, "-", x)
z <- match(z, z)
z
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.