Learn R Programming

spsurvey (version 4.1.0)

pickSamplePoints: Select Sample Points from a Simple Features Object

Description

This function selects sample points from an sf object of geometry type polygon or linestring.

Usage

pickSamplePoints(sfobject, featureID, xc, yc, dx, dy)

Arguments

sfobject

The sf polygon object.

featureID

Vector identifying features in sfobject from which a sample point will be selected.

xc

Vector of x-coordinates for the grid cells.

yc

Vector of y-coordinates for the grid cells.

dx

The x-axis grid cell dimension.

dy

The y-axis grid cell dimension.

Value

Data frame containing x-coordinates and y-coordinates for sample points.