Rdocumentation
powered by
Learn R Programming
spsurvey (version 3.1)
irslin: Select an Independent Random Sample (IRS) of a Linear Resource
Description
This function selects an independent random sample (IRS) of a linear resource.
Usage
irslin(shapefilename=NULL, linframe, samplesize=100, SiteBegin=1)
Arguments
shapefilename
name of the input shapefile. If shapefilename equals NULL, then the shapefile or shapefiles in the working directory are used. The default is NULL.
linframe
a data frame containing id, mdcaty and mdm.
samplesize
number of points to select in the sample. The default is 100.
SiteBegin
number to use for first site in the design. The default is 1.
Value
A data frame of IRS sample points containing: SiteID, id, x, y, mdcaty, and weight.
See Also
irs