rot: Rotate Locations

View source: R/rgm-auxilaryfunctions.R

rotR Documentation

Rotate Locations

Description

Rotates locations to align with the mean vector direction.

Usage

rot(loc)

Arguments

loc

Matrix of locations to rotate.

Value

Matrix of rotated locations.

Examples

# Example usage with a 2-column matrix representing locations.
loc <- matrix(rnorm(20), ncol = 2)
rotated_loc <- rot(loc)

rgm documentation built on May 29, 2024, 9:39 a.m.