step_compare_columns | R Documentation |
Check the spacing of a variable
step_compare_columns(
.rec,
data,
compare,
role = "add",
n_sd = 4,
na_rm = TRUE,
...
)
.rec |
the R6 recipe object. |
data |
|
compare |
|
role |
character - the name of the role |
n_sd |
numeric - number of standard deviations for the scaling |
na_rm |
logical - should NA values be removed from calculations |
... |
additional arguments |
an updated recipe
data("kennel_2020")
kennel_2020[1e4, wl := 13.36]
frec = recipe(wl~baro, data = kennel_2020) |>
step_compare_columns(data = wl, compare = baro, n_sd = 15) |>
prep() |>
bake()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.