list2rules | R Documentation |
rule
Convert nested list into list of rule
list2rules(obj)
obj |
( |
a list
of rule
objects.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.