tests/testthat/test-simulation.R

context("Simulate datasets")
test_that("simulate datasets correctly", {
  h.temp<-sim_homologous(ploidy=6, n.mrk=20, max.d=3, max.ph=3, seed=123)
  dat<-poly_cross_simulate(ploidy=6, rf.vec=.05, n.mrk=20,
                                     n.ind=20, h.temp, seed=123)
  expect_is(dat, "mappoly.data")
})

Try the mappoly package in your browser

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

mappoly documentation built on Jan. 6, 2023, 1:16 a.m.