Learn R Programming

spsurvey (version 4.1.4)

irspts: Select an Independent Random Sample (IRS) of a Finite Resource

Description

This function selects an IRS of a finite resource (discrete points).

Usage

irspts(ptsframe, samplesize = 100, SiteBegin = 1)

Arguments

ptsframe

The sf object containing attributes: id, mdcaty, and mdm.

samplesize

Number of points to select in the sample. The default is 100.

SiteBegin

First number to start siteID numbering. The default is 1.

Value

An sf object of sample points containing attributes: siteID, id, mdcaty, and wgt.