Generates unique groupings of a data.table
object where one or more rows can
all belong to the same pixelIndex
. Pixel groups will be identical pixels based
on unique combinations of columns
.
generatePixelGroups( pixelDataTable, maxPixelGroup, columns = c("ecoregionGroup", "speciesCode", "age", "B") )
pixelDataTable | A |
---|---|
maxPixelGroup | A length 1 numeric indicating the current maximum |
columns | A character vector of column names to use as part of the generation of unique
combinations of features. Default is |
Returns a vector of pixelGroup
in the original order of the input pixelDataTable
.
This should likely be added to the pixelDataTable
object immediately.