Learn R Programming

spsurvey (version 4.1.4)

irslin: Select an Independent Random Sample (IRS) of a Linear Resource

Description

This function selects an IRS of a linear resource.

Usage

irslin(linframe, samplesize = 100, SiteBegin = 1)

Arguments

linframe

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