dwww Home | Show directory contents | Find package

# basic rename

    Code
      prep(rec, training = iris %>% slice(1:75))
    Condition
      Error in `step_rm()`:
      Caused by error in `prep()`:
      ! Can't rename variables in this context.

# remove with quasi-quotation

    Code
      prep(rec_1, training = iris %>% slice(1:75))
    Condition
      Error in `step_rm()`:
      Caused by error in `prep()`:
      ! Problem while evaluating `all_of(sepal_vars)`.
      Caused by error in `as_indices_impl()`:
      ! object 'sepal_vars' not found

# printing

    Code
      print(rec)
    Output
      Recipe
      
      Inputs:
      
            role #variables
       predictor          2
      
      Operations:
      
      Variables removed x1

---

    Code
      prep(rec)
    Output
      Recipe
      
      Inputs:
      
            role #variables
       predictor          2
      
      Training data contained 20 data points and no missing data.
      
      Operations:
      
      Variables removed x1 [trained]

# empty printing

    Code
      rec
    Output
      Recipe
      
      Inputs:
      
            role #variables
         outcome          1
       predictor         10
      
      Operations:
      
      Variables removed <none>

---

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

Generated by dwww version 1.15 on Thu May 23 19:12:19 CEST 2024.