tests/testthat/test-build.R

test_that("map.build constructors work", {
  data(iris)
  df<-subset(iris,select=-Species)
  labels<-subset(iris,select=Species)
  m<-map.build(df,labels,seed=42)

  expect_equal(m$convergence < 0.8,TRUE)
  expect_equal(length(m$unique.centroids)<5,TRUE)
})

Try the popsom package in your browser

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

popsom documentation built on Dec. 21, 2021, 1:07 a.m.