tests/testthat/test-shuffle.R

context("shuffle method for SoilProfileCollection objects")


test_that("basic functionality", {
  
  data('osd', package = 'aqp')
  o <- osd
  
  o.d <- shuffle(o, mode = 'data')
  o.h <- shuffle(o, mode = 'horizon')
  o.h2 <- shuffle(o, mode = 'horizon', replace = TRUE)
  
  expect_true(inherits(o.d, 'SoilProfileCollection'))
  expect_true(inherits(o.h, 'SoilProfileCollection'))
  expect_true(inherits(o.h2, 'SoilProfileCollection'))
  
})

Try the aqp package in your browser

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

aqp documentation built on Jan. 17, 2026, 9:07 a.m.