simplify <- function(p300, np300, num){
tmp1 <- sample(1:length(p300), num , replace = F)
a <- p300[tmp1]
b <- np300[tmp1]
return(list(a, b))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.