flip_dim: Take a set of numbers and flip them around on a number line

View source: R/utils.R

flip_dimR Documentation

Take a set of numbers and flip them around on a number line

Description

Take a set of numbers and flip them around on a number line

Usage

flip_dim(gp, dim)

Arguments

gp

A gp

dim

Symbol. Column to flip. Should be the name of a column that exists in gp$well_data

Details

This assumes the beginning is 1 and the end is maximum length of the dimension. Note that this does NOT simply check the maximum value of the supplied vector, but searches the supplied gp for a matching ndim column that definitively tells how long the given dimension is supposed to be. This is important, as sometimes a dimension is given that is longer than its parent dimension, so the maximum numbers would not show in the vector.

Value

A vector.


KaiAragaki/Plate documentation built on Sept. 2, 2024, 3:39 a.m.