Description Usage Arguments Value Examples
Map Values to Groups
1 | mmmGroup(x, groups)
|
x |
|
groups |
|
integer()
Vector.
1 2 3 4 5 6 7 8 9 10 11 12 | # Numeric
x <- c(1, 4, 2, 3, NA, 2, 7)
y <- list(a = 1:2, b = 3:4)
g1 <- mmmGroup(x, y)
# Character
x <- c("M", "F", "F", NA, "M", "N", "F")
y <- list(m = "M", f = "F")
g2 <- mmmGroup(x, y)
# Factor
x <- factor(c("L", "S", "M", NA, "M", "H"))
y <- list(s = "S", m = "M", l = "L")
g3 <- mmmGroup(x, y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.