For each grid cell, this function calculates the clipped area of each polygon feature contained in the cell.
insideAreaGridCell(sfobject, rdx.u, xc, yc, dx, dy)
The sf polygon object.
Vector of cell IDs.
Vector of x-coordinates for the grid cells.
Vector of y-coordinates for the grid cells.
The x-axis grid cell dimension.
The y-axis grid cell dimension.
Data frame containing the following variables: cellID, featureArea, and featureID.