tests/testthat/test_valTable.R

context("valTable")
test_that("valTable data.frame",{
  data("Tarragona")
  vT <- valTable(Tarragona[100:200,],
    method=c("simple","onedims","pca","addNoise:additive",
             "addNoise:correlated","addNoise:correlated2","addNoise:restr",
             "addNoise:outdect","addNoise:ROMM"))
  expect_true(is.data.frame(vT))
})

test_that("valtable more methods",{
  data("Tarragona")
  expect_warning(vT <- valTable(Tarragona[100:200,],
    method=c("simple","onedims","pca","clustpppca","mdav","swappNum")))
  expect_true(is.data.frame(vT))
})

Try the sdcMicro package in your browser

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

sdcMicro documentation built on Sept. 27, 2023, 5:07 p.m.