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