spinToLong: Take anansi output and wrangle it all to a long data.frame...

View source: R/ParseOutput.R

spinToLongR Documentation

Take anansi output and wrangle it all to a long data.frame format.

Description

Take anansi output and wrangle it all to a long data.frame format.

Usage

spinToLong(
  anansi_output,
  prune = TRUE,
  translate = FALSE,
  Y_translation = NULL,
  X_translation = NULL
)

Arguments

anansi_output

an anansiYarn object. The output of the main anansi function.

prune

Boolean, default is TRUE. Toggles whether to take out the non-canonical associations.

translate

Boolean, default is FALSE Toggles whether to translate the names of the features in tableX and tableY to human readable names.

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.

Value

a long format data.frame intended to be compatible with ggplot2


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