Nothing
#' Make a binary vector with all values equal to zero except for one
#'
#' @param n Desired vector length.
#' @param i Index whose value is one.
#' @return A vector
binary_vector_gen <- function(n, i){
a <- rep(0, n)
a[i] <- 1
return(a)
}
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.