Most common stratum calculator
For each cell in the coarse user-defined grid (only specified if
cfg_sample_spatial == TRUE), this function calculates the stratum that occurs most often within each cell.
data.table object. This
data.table where each cell that lies within a larger grid cell is represented as a row. For each row, the variable
grid_id is the ID of the cell from the coarser grid,
sampled denotes whether a cell has been sampled,
stratum defines the stratum each cell lies within, and
raster_index is a unique value for each cell in the raster.
Vector of values representing the stratum that occurs most often within a given subset of the raster.
Forrest R. Stevens, firstname.lastname@example.org