tests/testthat/test-genphen.R

test_that("Whether both functions gives us the same output", {
  gen = gen.varcov(seldata[,3:9], seldata$treat, seldata$rep)
  phen = phen.varcov(seldata[,3:9], seldata$treat, seldata$rep)

  expect_equal(nrow(gen), 7)
  expect_equal(nrow(phen), 7)
})

Try the selection.index package in your browser

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

selection.index documentation built on Sept. 19, 2023, 5:09 p.m.