Skip to contents

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

Value

A vector.

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.