tests/testthat/_test-one_hot_encoding.R

test_that("one-hot-encoding tests", {
  local_edition(3)
  expect_snapshot(
    one_hot_encoding(warpbreaks)
  )
  expect_snapshot(
    one_hot_encoding(warpbreaks, variables = "tension")
  )
  expect_snapshot(
    one_hot_encoding(warpbreaks, drop_one = TRUE)
  )
})
drdsdaniel/Dmisc documentation built on Oct. 23, 2024, 9:28 p.m.