combine_rules {dunlin} | R Documentation |
Combine Two Rules
Description
Combine Two Rules
Usage
combine_rules(x, y, ...)
Arguments
x |
( |
y |
( |
... |
not used. |
Value
a rule
.
Note
The order of the mappings in the resulting rule corresponds to the order of the mappings in x
followed by the
mappings that are only present in y
.
Examples
r1 <- rule(
"first" = c("from ori rule", "FROM ORI RULE"),
"last" = c(NA, "last"),
.to_NA = "X",
.drop = TRUE
)
r2 <- rule(
"first" = c("F", "f"),
"second" = c("S", "s"),
"third" = c("T", "t"),
.to_NA = "something"
)
combine_rules(r1, r2)
[Package dunlin version 0.1.8 Index]