Learn R Programming

spsurvey (version 4.0.0)

selectrecordID: Internal Function: Select Shapefile Record to Select Sample Point

Description

This function selects a shapefile record from which a sample point will be selected.

Usage

selectrecordID(rdx, cellID, recordMeasure, recordID, mdm, id)

Arguments

rdx

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

cellID

Vector of grid cell IDs.

recordMeasure

Vector of grid cell shapefile record length for polyline-type shapefiles or shapefile record area for polygon-type shapefiles.

recordID

Vector of grid cell shapefile record IDs.

mdm

Vector of multidensity multipliers for the shapefile records.

id

Vector of shapefile record IDs.

Value

The ID of a shapefile record.