R/rules.R
as.list.rule.Rd
Convert Rule to List
# S3 method for rule as.list(x, ...)
(rule) to convert.
rule
not used.
an object of class list.
list
x <- rule("a" = c("a", "b"), "X" = "x", .to_NA = c("v", "w")) as.list(x) #> $a #> [1] "a" "b" #> #> $X #> [1] "x" #> #> $.string_as_fct #> [1] TRUE #> #> $.na_last #> [1] TRUE #> #> $.drop #> [1] FALSE #> #> $.to_NA #> [1] "v" "w" #>