Code
is_unsupervised_weights(3)
Condition
Error in `is_unsupervised_weights()`:
! Must be be a `case_weights` variable.
Code
too_many_case_weights(c("var1", "var2"))
Condition
Error:
! There should only be a single column with the role `case_weights`.
i In these data, there are 2 columns: `var1` and `var2`.
Code
recipe(~., data = mtcars) %>% step_normalize(all_predictors()) %>% prep()
Condition
Error in `step_normalize()`:
Caused by error in `prep()`:
x vs has a `case_weights` role and should be numeric, but is a string.
i Only numeric case weights are supported in recipes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.