View source: R/trigonometry_degrees.R
angle_vectors | R Documentation |
Calculates the angle between two vectors
angle_vectors(x, y)
x , y |
Vectors in Cartesian coordinates. Can be vectors of three numbers or a matrix of 3 columns (x, y, z) |
numeric. angle in degrees
u <- c(1, -2, 3)
v <- c(-2, 1, 1)
angle_vectors(u, v)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.