tests/testthat/test-extract_duplicates.R

test_that("best_duplicate", {
  df1 <- data.frame(
    id = c(1, 2, 3, 1, 3),
    item1 = c(NA, 1, 1, 2, 3),
    item2 = c(NA, 1, 1, 2, 3),
    item3 = c(NA, 1, 1, 2, 3)
  )
  expect_snapshot(extract_duplicates(df1, id = "id"))
})

Try the rempsyc package in your browser

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

rempsyc documentation built on July 3, 2024, 5:08 p.m.