Code
rec %>% step_spatialsign(carbon, hydrogen, na_rm = 12) %>% prep()
Condition
Error in `step_spatialsign()`:
Caused by error in `prep()`:
! `na_rm` must be `TRUE` or `FALSE`, not the number 12.
Code
rec
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
outcome: 1
predictor: 9
case_weights: 1
-- Training information
Training data contained 32 data points and no incomplete rows.
-- Operations
* Spatial sign on: disp, hp, drat, wt, qsec, vs, am, ... | Trained, weighted
Code
rec
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
outcome: 1
predictor: 9
case_weights: 1
-- Training information
Training data contained 32 data points and no incomplete rows.
-- Operations
* Spatial sign on: cyl, disp, hp, drat, qsec, ... | Trained, ignored weights
Code
bake(sp_sign_trained, new_data = biomass[, c(-3)])
Condition
Error in `step_spatialsign()`:
! The following required column is missing from `new_data`: carbon.
Code
rec
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
outcome: 1
predictor: 10
-- Operations
* Spatial sign on: <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
* Spatial sign on: <none> | Trained
Code
print(rec)
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
outcome: 1
predictor: 5
-- Operations
* Centering for: carbon and hydrogen
* Scaling for: carbon and hydrogen
* Spatial sign on: carbon and hydrogen
Code
prep(rec)
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
outcome: 1
predictor: 5
-- Training information
Training data contained 536 data points and no incomplete rows.
-- Operations
* Centering for: carbon and hydrogen | Trained
* Scaling for: carbon and hydrogen | Trained
* Spatial sign on: carbon and hydrogen | Trained
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.