pasteFactors | R Documentation |
Paste two factors and re-assign the levels
pasteFactors(x, y, collapse = "_")
x , y |
Factor vectors |
collapse |
A character string to separate the |
A new factor vector
x <- factor(c(rep("A", 10), rep("B", 10)), levels = c("A", "B"))
y <- factor(c(rep("a", 5), rep("b", 15)), levels = c("a", "b"))
pasteFactors(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.