tests/testthat/_snaps/encoding.md

errors on missing values

Code
  fct_encode_one_hot(x)
Condition
  Error in `fct_encode_one_hot()`:
  ! `x` can't contain missing values.

errors on non-factors

Code
  fct_encode_one_hot(1)
Condition
  Error in `fct_encode_one_hot()`:
  ! `x` must be a factor.


Try the hardhat package in your browser

Any scripts or data that you put into this service are public.

hardhat documentation built on March 31, 2023, 10:21 p.m.