Code
prep(rec3, training = ex_dat, verbose = FALSE)
Condition
Error in `step_ordinalscore()`:
Caused by error in `prep()`:
x All columns selected for the step should be ordered.
* 1 double variable found: `numbers`
* 1 factor variable found: `fact`
Code
rec
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
outcome: 1
predictor: 10
-- Operations
* Scoring for: <none>
Code
rec
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
outcome: 1
predictor: 10
-- Training information
Training data contained 32 data points and no incomplete rows.
-- Operations
* Scoring for: <none> | Trained
Code
print(rec)
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
predictor: 5
-- Operations
* Scoring for: starts_with("ord")
Code
prep(rec)
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
predictor: 5
-- Training information
Training data contained 20 data points and no incomplete rows.
-- Operations
* Scoring for: ord1, ord2, ord3 | Trained
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.