#' Distance between two points.
#'
#' This function calculates the Euclidean distance between two points.
#' @param x The n coordinates of one point.
#' @param y The n coordinates of the other point.
#' @export
distance <-
function(x, y, ...) {
# Formula
sqrt(sum((x - y) ^ 2))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.