anansiTranslate: Translate tableY and tableX columns column to human readable...

View source: R/ParseOutput.R

anansiTranslateR Documentation

Translate tableY and tableX columns column to human readable names

Description

helper function for the spinToLong and spinToWide functions.

Usage

anansiTranslate(
  x,
  Y_translation = Y_translation,
  X_translation = X_translation,
  argonansi = FALSE
)

Arguments

x

a table with a feature_Y and feature_X column.

Y_translation

data.frame, a lookup table with featureY names as the first column and human readable names as the second. See cpd_translation for an example file.

X_translation

data.frame, a lookup table with featureX names as the first column and human readable names as the second. See KO_translation for an example file.

argonansi

A boolean. Toggles whether we are dealing with stratified data.

Value

an expanded table with a column for the human readable names for the features in both tableY and tableX.


thomazbastiaanssen/anansi documentation built on Feb. 9, 2025, 2:07 p.m.