#' Title
#'
#' @param x
#'
#' @return
#' @export
#'
#' @examples
which.middle <- function(x) {which.min(abs(x - (max(x) + min(x)) / 2 ))}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.