rel_dim: Performs 'flip_dim' if necessary

View source: R/utils.R

rel_dimR Documentation

Performs flip_dim if necessary

Description

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)


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