Usage
irs(design, DesignID="Site", SiteBegin=1, type.frame="finite",
src.frame="shapefile", in.shape=NULL, sp.object=NULL, att.frame=NULL,
id=NULL, xcoord=NULL, ycoord=NULL, stratum=NULL, mdcaty=NULL, maxtry=1000,
shapefile=TRUE, prjfilename=NULL, out.shape="sample")
Arguments
design
named list of stratum design specifications, where each element of
design is a list containing the design specifications for a stratum. For
an unstratified sample, design contains a single list. If the sample is
stratified, the names in d
DesignID
name for the design, which is used to create a site
ID for each site. The default is "Site".
SiteBegin
number to use for first site in the design. The default is
1.
type.frame
the type of frame, which must be one of following: "finite",
"linear", or "area". The default is "finite".
src.frame
source of the frame, which equals "shapefile" if the frame is
to be read from a shapefile, "sp.object" if the frame is obtained from an sp
package object, or "att.frame" if type.frame equals "finite" and the frame
is included in att.frame.
in.shape
name (without any extension) of the input shapefile. If
src.frame equal "shapefile" and in.shape equals NULL, then the shapefile or
shapefiles in the currrent directory are used. The default is NULL.
sp.object
name of the sp package object when src.frame equals
"sp.object". The default is NULL.
att.frame
a data frame composed of attributes associated with elements
in the frame, which must contain the columns used for stratum and mdcaty (if
required). If src.frame equals "shapefile" and att.frame equals NULL, then
att.frame is created from
id
name of the column from att.frame that identifies the ID value for
each element in the frame. If id equals NULL, a column named "id" that
contains values from one through the number of rows in att.frame is added to
att.frame. The default
xcoord
name of the column from att.frame that identifies x-coordinates
when src.frame equals "att.frame". If xcoord equals NULL, then xcoord is
given the value "x". The default is NULL.
ycoord
name of the column from att.frame that identifies y-coordinates
when src.frame equals "att.frame". If ycoord equals NULL, then ycoord is
given the value "y". The default is NULL.
stratum
name of the column from att.frame that identifies stratum
membership for each element in the frame. If stratum equals NULL, the
design is unstratified, and a column named "stratum" (with all its elements
equal to the stratum name specified
mdcaty
name of the column from att.frame that identifies the unequal
probability category for each element in the frame. The default is
NULL.
maxtry
maximum number of iterations for randomly generating a point
within the frame to select a site when type.frame equals "area". The
default is 1000.
shapefile
option to create a shapefile containing the survey design
information, where TRUE equals create a shapefile and FALSE equals do not
create a shapefile. The default is TRUE.
prjfilename
name (without any extension) of the project file for an
input shapefile. The default is NULL.
out.shape
name (without any extension) of the output shapefile
containing the survey design information. The default is "sample".