Nothing
`.SampleMat2` <-
function(ref, ratio)
{
ntot <- length(ref)
npres<- sum(ref)
ncal <- ceiling(ntot*ratio)
pres <- sample(which(ref==1), ceiling(npres*ratio))
absc <- sample(which(ref==0), ncal-length(pres))
samprows <- list("calibration"=c(pres,absc), "evaluation"=(1:ntot)[-c(pres,absc)])
return(samprows)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.