dwww Home | Show directory contents | Find package

# bad data

    Code
      rec %>% step_impute_lower(carbon, hydrogen, has_neg) %>% prep()
    Condition
      Error in `step_impute_lower()`:
      Caused by error in `prep()`:
      ! Some columns have negative values. Lower bound imputation is intended for data bounded at zero.

# Deprecation warning

    Code
      recipe(~., data = mtcars) %>% step_lowerimpute()
    Condition
      Error:
      ! `step_lowerimpute()` was deprecated in recipes 0.1.16 and is now defunct.
      i Please use `step_impute_lower()` instead.

# printing

    Code
      print(rec)
    Output
      Recipe
      
      Inputs:
      
            role #variables
         outcome          1
       predictor          3

---

    Code
      prep(rec2)
    Output
      Recipe
      
      Inputs:
      
            role #variables
         outcome          1
       predictor          3
      
      Training data contained 536 data points and no missing data.
      
      Operations:
      
      Lower bound imputation for carbon, hydrogen [trained]

# empty printing

    Code
      rec
    Output
      Recipe
      
      Inputs:
      
            role #variables
         outcome          1
       predictor         10
      
      Operations:
      
      Lower bound imputation for <none>

---

    Code
      rec
    Output
      Recipe
      
      Inputs:
      
            role #variables
         outcome          1
       predictor         10
      
      Training data contained 32 data points and no missing data.
      
      Operations:
      
      Lower bound imputation for <none> [trained]

Generated by dwww version 1.15 on Wed Jun 26 03:41:13 CEST 2024.