distances <- function(A,B){ d=sqrt((A[1]-B[1])^2+(A[2]-B[2])^2) return(as.numeric(d)) }
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.