reorientCoordinatesBy: Rotate coordinates in a data frame relative to reference...

View source: R/localization.R

reorientCoordinatesByR Documentation

Rotate coordinates in a data frame relative to reference angle.

Description

Rotate coordinates in a data frame relative to reference angle.

Usage

reorientCoordinatesBy(df, X, Y, orient, CCW = FALSE)

Arguments

df

Data frame with at least 2 columns.

X

name of column with X coordinates.

Y

name of column with Y coordinates.

orient

Either numeric specifying one angle to use for all coordinates or a string specifying the column with reference angles.

CCW

(boolean)

Value

Data frame with X and Y rotated by the angles in orient.


thartbm/handlocs documentation built on Feb. 18, 2025, 10:53 p.m.