Test that pixelGroupMap and cohortData match

testCohortData(cohortData, pixelGroupMap, sim, maxExpectedNumDiverge = 1)

Arguments

cohortData

a data.table with columns: pixelGroup, ecoregionGroup, speciesCode, age, B, mortality, aNPPAct, and sumB.

pixelGroupMap

Raster layer with pixel values equal to a pixel group number that correspondsd exactly to pixelGroup column in cohortData

sim

If the simList is included, then the browser() call will be more useful

maxExpectedNumDiverge

A numeric, length 1, indicating by how many they can diverge. Default 1.

Note

TODO