Learn R Programming

dunlin (version 0.1.10)

combine_rules: Combine Two Rules

Description

Combine Two Rules

Usage

combine_rules(x, y, ...)

Value

a rule.

Arguments

x

(rule) to modify.

y

(rule) rule whose mapping will take precedence over the ones described in x.

...

not used.

Examples

Run this code
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)

Run the code above in your browser using DataLab