View source: R/bootstrap.orig.data.R
bootstrap.orig.data | R Documentation |
This 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.
bootstrap.orig.data(orig.data, resample, new.resamples, resamples.no)
orig.data |
Original data to be bootstrapped |
resample |
Specifies the resampling unit for bootstrapping, default is |
new.resamples |
String of resampled units from |
resamples.no |
Length of new.resamples |
Returns bootstrapped data. Internal function called by function create.bootstrap.data
.
data(dis.data.re)
resample<-"transect.id"
samples<-unique(dis.data.re[,resample])
resamples.no<-length(samples)
new.resamples<-sample(samples,resamples.no,replace=TRUE)
bootstrap.data<-bootstrap.orig.data(dis.data.re,resample,new.resamples,resamples.no)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.