Can either resample samples within strata or observations within samples
resample.data(
resample,
obs.table,
sample.table,
ddf.dat.master,
double.observer,
subset.variable = "species"
)
if "samples" resample samples within strata, if "observations" resample observations within samples.
dataframe of observation records with fields object,
Region.Label, and Sample.Label which give links to sample.table,
region.table and the data records used in model
dataframe of sample records - Region.Label, Sample.Label, Effort
list of complete/original datasets
boolean indicating if it is a double observer survey
character describing which variable in the dataset should be used in subsetting the data.
a list with 2 elements: ddf.dat.working a list of resampled datasets to be used in the analyses obs.table an updated obs.table with additional entries for data replicates
Once the observations have been resampled duplicates are given a different object id and the obs.table is updated appropriately.