list2rules {dunlin} | R Documentation |
Convert nested list into list of rule
Description
Convert nested list into list of rule
Usage
list2rules(obj)
Arguments
obj |
( |
Value
a list
of rule
objects.
Examples
obj <- list(
rule1 = list("X" = c("a", "b"), "Z" = "c", .to_NA = "xxxx"),
rule2 = list(Missing = c(NA, "")),
rule3 = list(Missing = c(NA, ""), .drop = TRUE),
rule4 = list(Absent = c(NA, ""), .drop = TRUE, .to_NA = "yyyy")
)
list2rules(obj)
[Package dunlin version 0.1.7 Index]