Learn R Programming

rgm (version 1.0.4)

rot: Rotate Locations

Description

Rotates locations to align with the mean vector direction.

Usage

rot(loc)

Value

Matrix of rotated locations.

Arguments

loc

Matrix of locations to rotate.

Examples

Run this code
# 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