This uses R base functions to calculate the angle between two vectors in degrees, accounting for rounding errors to avoid NaNs.

angle_between(x, y)

Arguments

x

Vector of length d

y

Vector of length d

Value

Angle in degrees