Learn R Programming

spsurvey (version 4.0.0)

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

Data frame containing id, x, y, 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

Data frame of sample points containing: siteID, id, x, y, mdcaty, and weight.