tests/testthat/_snaps/spread.md

duplicate values for one key is an error

Code
  (expect_error(spread(df, x, y)))
Output
  <error/rlang_error>
  Error in `spread()`:
  ! Each row of output must be identified by a unique combination of keys.
  i Keys are shared for 2 rows
  * 2, 3


Try the tidyr package in your browser

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

tidyr documentation built on Feb. 16, 2023, 7:40 p.m.