tests/testthat/test-foldVector.R

test_that("foldVector works", {
 Y <- rep(LETTERS[1:2],10)
  ID <- 1:20
  folds <- 5
  foldList <- uniqDASamp(Y, ID, folds)


  ## Need to have ID specified
  expect_error(
  foldVect <- foldVector(foldList)
  )
   })

Try the MUVR2 package in your browser

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

MUVR2 documentation built on Sept. 16, 2024, 9:06 a.m.