#' Generate random rows from a dataframe
#'
#' Generate random rows from a dataframe
#' @param n number of random rows
randomRows = function(df,n){
return(df[sample(nrow(df),n),])
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.