tests/testthat/test-impute-value.R

context("Impute values")
library(glider)


test_that("impute_values works with a factor column", {

  expect_true("hello" %in% impute_value(iris, impute_col = "Species", condition = iris$Species == 'setosa', replacement = "hello")[["Species"]])
})
antchau/glider documentation built on Dec. 1, 2020, 9:23 p.m.