Learn R Programming

spsurvey (version 4.1.4)

irsarea: Select an Independent Random Sample (IRS) of an Area Resource

Description

This function selects an IRS of an area resource.

Usage

irsarea(areaframe, samplesize = 100, SiteBegin = 1)

Arguments

areaframe

The sf object containing attributes: id, mdcaty, area_mdm, 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.