inst/tinytest/test_make_trast.R

library(amt)

data(deer)

expect_equivalent(class(make_trast(deer)), "SpatRaster")
expect_equivalent(terra::res(make_trast(deer, res = 1e3)), rep(1e3, 2))
expect_equivalent(terra::res(make_trast(deer, res = 4e3)), rep(4e3, 2))

Try the amt package in your browser

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

amt documentation built on June 25, 2024, 1:14 a.m.