tests/testthat/test_dt.R

library(binst)

test_that("using decision trees partykit", {
  dt_breaks <- create_breaks(iris$Sepal.Length, iris$Species, method="dt")
  expect_gt(length(dt_breaks), 1)
})


test_that("using decision trees partykit with controls works", {
  dt_breaks <- create_breaks(iris$Sepal.Length, iris$Species, method="dt", control=list(na.action=na.pass))
  expect_gt(length(dt_breaks), 1)
})

Try the binst package in your browser

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

binst documentation built on May 2, 2019, 7:32 a.m.