This function selects sample points from an sf object of geometry type polygon or linestring.
pickSamplePoints(sfobject, featureID, xc, yc, dx, dy)
The sf polygon object.
Vector identifying features in sfobject from which a sample point will be selected.
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 x-coordinates and y-coordinates for sample points.