I am trying to use the GRTS function and I can't figure out the source of the error that makes it seems like the entire function is unusable.
test.design <- list( "Deep Lake Fen"=list(panel=c(PanelOne=3), seltype="Equal", over=0))
grts(design= test.design, #the GRTS call will reference the Stratdsgn object
src.frame="shapefile", #the sample frame is coming from a shapefile
in.shape ="Leon33_FenCenter", #the shapefile used is XXXX.shp
att.frame=att, #attribute data frame
type.frame="area", #type - area vs linear
DesignID = "STRATIFIED", #name for the design
shapefile = TRUE, # the output- a shapefile
prj="Leon33_FenCenter", #projection to use for the shapefile - same as listed file
stratum = "Name", #name of the column containing stratum in .dbf
#mdcaty = "Stratum", #name of columnn that identifies the unequal probability category for each element
out.shape="Leon33_FenCenter_GRTS") #name of the output shapefile
This is the resulting error I get when I try to run the above code: Error in grts(design = test.design, src.frame = "shapefile", in.shape = "Leon33_FenCenter", : unused arguments (design = test.design, src.frame = "shapefile", in.shape = "Leon33_FenCenter", att.frame = att, type.frame = "area", shapefile = TRUE, prj = "Leon33_FenCenter", out.shape = "Leon33_FenCenter_GRTS")
Can anyone help determine the source of the error and how to fix it?