powered by
Rotates locations to align with the mean vector direction.
rot(loc)
Matrix of rotated locations.
Matrix of locations to rotate.
# Example usage with a 2-column matrix representing locations. loc <- matrix(rnorm(20), ncol = 2) rotated_loc <- rot(loc)
Run the code above in your browser using DataLab