powered by
Calculates the angle between two vectors
angle_vectors(x, y)
numeric. angle in degrees
Vectors in Cartesian coordinates. Can be vectors of three numbers or a matrix of 3 columns (x, y, z)
u <- c(1, -2, 3) v <- c(-2, 1, 1) angle_vectors(u, v)
Run the code above in your browser using DataLab