tests/testthat/_snaps/rename_at.md

mulitple functions

Code
  prep(rec, training = iris %>% slice(1:75))
Condition
  Error in `step_rename_at()`:
  Caused by error in `dplyr::rename_at()`:
  ! `.funs` must contain one renaming function, not 2.

no input

Code
  iris_rec %>% step_rename_at() %>% prep(training = iris) %>% bake(new_data = NULL,
    composition = "data.frame")
Condition
  Error in `step_rename_at()`:
  ! Argument `fn` must be specified.
Code
  iris_rec %>% step_rename_at(fn = ":=O") %>% prep(training = iris) %>% bake(
    new_data = NULL, composition = "data.frame")
Condition
  Error in `step_rename_at()`:
  Caused by error in `get()`:
  ! object ':=O' of mode 'function' was not found

empty printing

Code
  rec
Message

  -- Recipe ----------------------------------------------------------------------

  -- Inputs 
  Number of variables by role
  outcome:    1
  predictor: 10

  -- Operations 
  * Variable renaming 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 
  * Variable renaming for: <none> | Trained

printing

Code
  print(rec)
Message

  -- Recipe ----------------------------------------------------------------------

  -- Inputs 
  Number of variables by role
  predictor: 5

  -- Operations 
  * Variable renaming for: contains("Sepal")
Code
  prep(rec)
Message

  -- Recipe ----------------------------------------------------------------------

  -- Inputs 
  Number of variables by role
  predictor: 5

  -- Training information 
  Training data contained 150 data points and no incomplete rows.

  -- Operations 
  * Variable renaming for: Sepal.Length and Sepal.Width | Trained


tidymodels/recipes documentation built on Jan. 25, 2025, 7:30 a.m.