tests/testthat/test_discr_Simmap_all.R

test_that(
  "Testing discr_Simmap_all()",
  {

    stm <- readRDS("../testdata/stm_test.RDS")

    stm_discr <- discr_Simmap_all(stm, res = 100)

    edges1 <- sapply(stm[[1]]$maps, function(x) round(sum(x),4) )
    edges2 <- sapply(stm_discr[[1]]$maps, function(x) round(sum(x),4) )

    # Check output.
    expect_identical(edges1, edges2)

  }
)

Try the ontophylo package in your browser

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

ontophylo documentation built on May 29, 2024, 9:57 a.m.