rule | R Documentation |
Create rule based on mappings
rule(
...,
.lst = list(...),
.string_as_fct = TRUE,
.na_last = TRUE,
.drop = FALSE,
.to_NA = ""
)
... |
Mapping pairs, the argument name is the transformed while its values are original values. |
.lst |
( |
.string_as_fct |
( |
.na_last |
( |
.drop |
( |
.to_NA |
( |
a rule
object.
Conversion to NA
is the last step of the remapping process.
rule("X" = "x", "Y" = c("y", "z"))
rule("X" = "x", "Y" = c("y", "z"), .drop = TRUE, .to_NA = c("a", "b"), .na_last = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.