For each grid cell, this function calculates the clipped length of each linestring feature contained in the cell.
insideLinearGridCell(sfobject, rdx.u, xc, yc, dx, dy)
The sf linestring 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, featureLength, and featureID.