powered by
This function calculates the spherical distance between two vectors.
spherical_dist(x, y)
The distance between vectors x and y.
A numeric vector.
x <- c(1, 0, 0) y <- c(0, 1, 0) spherical_dist(x, y)
Run the code above in your browser using DataLab