Learn R Programming

HelpersMG (version 5.1)

ChangeCoordinate: Return a value in a changed coordinate

Description

Return a value in a changed coordinate system.

Usage

ChangeCoordinate(
  x = stop("At least one value to convert must be provided"),
  initial = stop("Set of two values must be provided as references"),
  transformed = stop("Set of two transformed values must be provided")
)

Arguments

x

value to convert

initial

Set of two values in the original system

transformed

Set of the two values in the converted system

Value

A value in the new system

Details

ChangeCoordinate returns a value in a changed coordinate

Examples

Run this code
# NOT RUN {
ChangeCoordinate(x=c(10, 20), initial=c(1, 100), transformed=c(0, 1))
# }

Run the code above in your browser using DataLab