tests/testthat/_snaps/shift.md

validates its inputs

Code
  fct_shift(1)
Condition
  Error in `fct_shift()`:
  ! `f` must be a factor or character vector, not a number.
Code
  fct_shift("x", NA)
Condition
  Error in `fct_shift()`:
  ! `n` must be a whole number, not `NA`.


hadley/forcats documentation built on Nov. 4, 2023, 2:24 a.m.