spsurvey (version 4.1.4)

selectFeatureID: Identify a Feature in an sf Object for Selecting a Sample Point

Description

This function determines the ID value of the feature in an sf object from which a sample point will be selected.

Usage

selectFeatureID(rdx, cellID, featureMeasure, featureID, mdm, id)

Arguments

rdx

Value of the randomized hierarchical address identifying a grid cell that will get a sample point.

cellID

Vector of grid cell IDs.

featureMeasure

Vector of grid cell sf feature lengths for linestring objects or sf feature areas for polygon objects.

featureID

Vector of grid cell sf feature IDs.

mdm

Vector of multidensity multipliers for the shapefile features.

id

Vector of sf feature IDs.

Value

The ID of an sf feature.