Learn R Programming

mads (version 0.1.6)

renumber.duplicates: Renumbers the object IDs for the duplicate observations generated when bootstrapping

Description

Find the largest object ID and renumbers all duplicate IDs starting form this value. The information for the duplicates is also added to the obs.table

Usage

renumber.duplicates(ddf.dat, obs.table, double.observer)

Arguments

ddf.dat

dataframe containing a single dataset with duplicate observations

obs.table

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

double.observer

boolean indicating if it is a double observer survey

Value

list with 2 elements: ddf.dat dataframe containing a single dataset with new and unique observation IDs obs.table the updated obs.table dataframe containing the new observation IDs

See Also

resample.data