tests/testthat/test_permutation.R

context("Permutation")

test_that("Basic tests", {
  expect_that(rowSums(permutatedSamples(data=matrix(1:12,2), B=1000)), equals(rep(21,1000)))
  expect_that(ncol(permutatedSamples(data=matrix(1:12,2), B=1000)), equals(6))
})

Try the ROTS package in your browser

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

ROTS documentation built on Nov. 8, 2020, 7:37 p.m.