Learn R Programming

DSsim (version 1.1.4)

rename.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

rename.duplicates(ddf.dat, double.observer = FALSE)

Arguments

ddf.dat

dataframe containing a single dataset with duplicate observations

double.observer

logical indicating whether it is a double observer survey or not

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