sample2=function(x, size, replace = FALSE, prob = NULL){
if (missing(size)){ size <- length(x)}
x[sample.int(length(x), size, replace, prob)]
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.