convert_pir_out_to_long: Convert a 'pir_out' to its long form

View source: R/convert_pir_out_to_long.R

convert_pir_out_to_longR Documentation

Convert a pir_out to its long form

Description

A pir_out is a table with columns tree (for true or twin tree), a column inference_model (for generative or candidate) and columns named error_1, error_2, etcetera, containing the inference errors.

Usage

convert_pir_out_to_long(pir_out, verbose = FALSE)

Arguments

pir_out

the output of pir_run

verbose

if TRUE, show more output

Details

Converting this to a long form, results in a tibble like this:

  1. tree_and_model: either true_generative, or twin_generative, or true_candidate, or twin_candidate

  2. error_value: inference errors

Value

the pir_out in long form

Author(s)

Richèl J.C. Bilderbeek, Giovanni Laudanno

Examples

# Check cleanup by other functions
beastier::check_empty_beaustier_folders()

pir_out <- create_test_pir_run_output(
  add_twin = TRUE,
  add_best = TRUE
)
convert_pir_out_to_long(pir_out)

richelbilderbeek/pirouette documentation built on Oct. 18, 2023, 3:09 p.m.