transform_df_coords: Transform coordinates

View source: R/construct_transform_coordinates.R

transform_df_coordsR Documentation

Transform coordinates

Description

Given dataframe, column names of coordinates, and a transformation matrix, return dataframe with transformed coordinates.

Usage

transform_df_coords(df, ..., m = diag(length(df)))

Arguments

df

Dataframe with coordinates.

...

Column names where coordinates are (Will be treated as x, y, ...). Column names not supplied will be unchanged.

m

Matrix transformation to apply.

Value

Dataframe with transformed coordinates.


jtipton25/dasc2594 documentation built on Oct. 7, 2022, 3:46 p.m.