role
is validatedCode
update_role_requirements(rec, 1)
Condition
Error in `update_role_requirements()`:
! Can't convert `role` <double> to <character>.
Code
update_role_requirements(rec, c("x", "y"))
Condition
Error in `update_role_requirements()`:
! `role` must have size 1, not size 2.
Code
update_role_requirements(rec, "id", bake = FALSE)
Condition
Error in `update_role_requirements()`:
x `role` must be a preexisting role in the recipe.
i "id" is not a preexisting role.
Code
update_role_requirements(rec, "predictor", bake = FALSE)
Condition
Error in `update_role_requirements()`:
x Can't update the `bake` requirement of the "predictor" role.
i The "predictor" role is always required at `bake()` time.
Code
update_role_requirements(rec, "outcome", bake = FALSE)
Condition
Error in `update_role_requirements()`:
x Can't update the `bake` requirement of the "outcome" role.
i The "outcome" role is never required at `bake()` time.
bake = FALSE
Code
rec <- prep(rec, df)
Condition
Warning:
Column `x` returned NaN, because variance cannot be calculated and scaling cannot be used. Consider avoiding `Inf` or `-Inf` values and/or setting `na_rm = TRUE` before normalizing.
Code
bake(rec, df)
Condition
Error in `step_scale()`:
! The following required column is missing from `new_data`: x.
bake
requirements after preppingCode
bake(rec, df)
Condition
Error in `bake()`:
x The following required columns are missing from `new_data`: `x`.
i These columns have one of the following roles, which are required at `bake()` time: `id`.
i If these roles are not required at `bake()` time, use `update_role_requirements(role = "your_role", bake = FALSE)`.
Code
bake(rec, df)
Condition
Error in `bake()`:
x The following required columns are missing from `new_data`: `x`, `z`, and `w`.
i These columns have one of the following roles, which are required at `bake()` time: `predictor`.
Code
bake(rec, df)
Condition
Error in `bake()`:
x The following required columns are missing from `new_data`: `w`.
i These columns have one of the following roles, which are required at `bake()` time: `case_weights`.
i If these roles are not required at `bake()` time, use `update_role_requirements(role = "your_role", bake = FALSE)`.
Code
bake(rec, df)
Condition
Error in `bake()`:
x The following required columns are missing from `new_data`: `x` and `z`.
i These columns have one of the following roles, which are required at `bake()` time: `id`.
i If these roles are not required at `bake()` time, use `update_role_requirements(role = "your_role", bake = FALSE)`.
Code
bake(rec, df)
Condition
Error in `bake()`:
x The following required columns are missing from `new_data`: `x` and `z`.
i These columns have one of the following roles, which are required at `bake()` time: `NA`.
i If these roles are not required at `bake()` time, use `update_role_requirements(role = "your_role", bake = FALSE)`.
requirements
Code
bake(rec, df)
Condition
Error in `bake()`:
x The following required columns are missing from `new_data`: `x`.
i These columns have one of the following roles, which are required at `bake()` time: `predictor`.
requirements$bake
Code
bake(rec, df)
Condition
Error in `bake()`:
x The following required columns are missing from `new_data`: `x`.
i These columns have one of the following roles, which are required at `bake()` time: `predictor`.
Code
bake(rec, df)
Condition
Error in `bake()`:
x The following required columns are missing from `new_data`: `x`.
i These columns have one of the following roles, which are required at `bake()` time: `id`.
i If these roles are not required at `bake()` time, use `update_role_requirements(role = "your_role", bake = FALSE)`.
bake
is validatedCode
update_role_requirements(rec, "id", bake = 1)
Condition
Error in `update_role_requirements()`:
! `bake` must be `TRUE` or `FALSE`, not the number 1.
Code
update_role_requirements(rec, "id", bake = c(TRUE, FALSE))
Condition
Error in `update_role_requirements()`:
! `bake` must be `TRUE` or `FALSE`, not a logical vector.
Code
update_role_requirements(rec, "id", bake = NA)
Condition
Error in `update_role_requirements()`:
! `bake` must be `TRUE` or `FALSE`, not `NA`.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.