Description Usage Arguments Value Examples
View source: R/setAndGetTotal.R
MatchVarNames
1 | MatchVarNames(x, y, sep = ":", makeWarning = FALSE)
|
x |
x |
y |
y |
sep |
sep |
makeWarning |
Warning when matching by reordering |
An integer vector giving the position in y of the first match if there is a match, otherwise NA.
1 2 3 4 | z <- data.frame(A = factor(c("a", "b", "c")), B = factor(1:2), C = 1:6)
x <- colnames(model.matrix(~B * C * A, z))
y <- colnames(model.matrix(~A * B + A:B:C, z))
MatchVarNames(x, y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.