tests/testthat/test_CRE.R

tmat <- matrix(c(10,10,10,20,20,20,20,30,30),ncol=3,nrow=3)

test_that("CRE uni and multicore", {
	expect_equal(
		CRE(tmat,window=3,na.tolerance=1,np=1),
		CRE(tmat,window=3,na.tolerance=1,np=2)
		)
})

Try the rasterdiv package in your browser

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

rasterdiv documentation built on Nov. 24, 2022, 9:07 a.m.