minvector <- function(x) { index <- which.min(x) output <- rep(0,length(x)) output[index] <- 1 output }
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.