# 'other' already in use

    Code
      prep(others, training = sacr_tr_chr, strings_as_factors = FALSE)
    Condition
      Error in `step_other()`:
      Caused by error in `prep()`:
      ! The level other is already a factor level that will be retained. Please choose a different value.

# if the threshold argument is greather than one then it should be an integer(ish)

    Code
      rec %>% step_other(city, zip, threshold = 3.14)
    Condition
      Error in `step_other()`:
      ! `threshold` must be a whole number, not the number 3.14.

# othering with case weights

    Code
      others
    Message
      
      -- Recipe ----------------------------------------------------------------------
      
      -- Inputs 
      Number of variables by role
      predictor:    1
      case_weights: 1
      
      -- Training information 
      Training data contained 732 data points and no incomplete rows.
      
      -- Operations 
      * Collapsing factor levels for: city | Trained, weighted

---

    Code
      others
    Message
      
      -- Recipe ----------------------------------------------------------------------
      
      -- Inputs 
      Number of variables by role
      predictor:    1
      case_weights: 1
      
      -- Training information 
      Training data contained 732 data points and no incomplete rows.
      
      -- Operations 
      * Collapsing factor levels for: city | Trained, ignored weights

# empty printing

    Code
      rec
    Message
      
      -- Recipe ----------------------------------------------------------------------
      
      -- Inputs 
      Number of variables by role
      outcome:    1
      predictor: 10
      
      -- Operations 
      * Collapsing factor levels 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 
      * Collapsing factor levels for: <none> | Trained

# printing

    Code
      print(rec)
    Message
      
      -- Recipe ----------------------------------------------------------------------
      
      -- Inputs 
      Number of variables by role
      predictor: 2
      
      -- Operations 
      * Collapsing factor levels for: city and zip

---

    Code
      prep(rec)
    Message
      
      -- Recipe ----------------------------------------------------------------------
      
      -- Inputs 
      Number of variables by role
      predictor: 2
      
      -- Training information 
      Training data contained 732 data points and no incomplete rows.
      
      -- Operations 
      * Collapsing factor levels for: city and zip | Trained

