tests/testthat/_snaps/relevel.md

warns about unknown levels

Code
  f2 <- fct_relevel(f1, "d")
Condition
  Warning:
  1 unknown level in `f`: d

dots must be unnamed

Code
  fct_relevel(f, a = "b")
Condition
  Error in `fct_relevel()`:
  ! Arguments in `...` must be passed by position, not name.
  x Problematic argument:
  * a = "b"


Try the forcats package in your browser

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

forcats documentation built on Feb. 16, 2023, 8:57 p.m.