Skip to contents

Performs flip_dim if necessary

Usage

rel_dim(gp, dim, rel)

Arguments

gp

A gp

dim

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

rel

Character. Column to check if_fwd on. If TRUE, return dim as is. If FALSE (rel is backwards), flip the column.

Value

A vector that is flipped (see flip_dim) if rel is backwards (see is_fwd)