Nothing
#' resample
#'
#' @param X A vector to be resamples
#' @param size The size of the resulting vector. Should be a number such that size*nrow(X) is a whole number
#'
#' @return A vector of resampled X values
#' @export
#'
#' @examples X<-c(1:10)
#' resample(X,.5)
resample<-function(X,size){ #a resampling function. Accounts for R's surprise with the sample() function
return(X[sample.int(length(X),length(X)*size, replace=T)])
}
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.