Remove missing cohorts from cohortData based on pixelGroupMap

rmMissingCohorts(cohortData, pixelGroupMap, firePixelTable)

Arguments

cohortData

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

pixelGroupMap

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

firePixelTable

A data.table with 2 columns, pixelIndex and pixelGroup. This will be used in conjunction with cohortData and pixelGroupMap to ensure that everything matches correctly.

Value

A data.table with a new, cohortData