tests/testthat/test-biodiv_df.r

test_that("biodiv_df works", {
  data(biodiv_df, package = "prior3D")
  expect_equal(
    head(biodiv_df),
    data.frame(
      species_name = c("acanthocybium_solandri", "acantholabrus_palloni",
                       "acanthomysis_longicornis", "abraliopsis_morisii",
                       "abralia_veranyi", "abraliopsis_pfefferi"),
      pelagic = c(1, 0, 0, 0, 0, 0),
      min_z = c(-20, -500, -100, -3660, -900, -750),
      max_z = c(0, -30, -2, 0, -1, -1)
    )
  )
})

Try the prior3D package in your browser

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

prior3D documentation built on April 11, 2025, 5:39 p.m.