#' distance function
#'
#' @param points
#' @param p
#'
#' @return
#' @export
#'
#' @examples
minDist <- function(points, p){
which.min(colSums((t(points) - p)^2))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.