Obtaining a data frame of bootstrapped data using resamples
Source:R/bootstrap.orig.data.R
bootstrap.orig.data.RdThis function extracts the records corresponding to each resample from the original distance data and pastes them together in a new data frame which is returned.
Arguments
- orig.data
Original data to be bootstrapped
- resample
Specifies the resampling unit for bootstrapping, default is
transect.id. Must match a column name inorig.dataexactly- new.resamples
String of resampled units from
data[,"resample"]. Created bycreate.bootstrap.data()- resamples.no
Length of new.resamples