tests/testthat/test-no_NAs.R

X <- as.data.frame(matrix(rnorm(20*4),20,4))

res <- ClustImpute(X,3)

test_that("No changes if there are no NAs", {
  expect_identical(res$complete_data,X)
})

Try the ClustImpute package in your browser

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

ClustImpute documentation built on Aug. 1, 2019, 5:05 p.m.