Learn R Programming

pirouette (version 1.6.9)

convert_pir_out_to_long: 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)

Value

the pir_out in long form

Arguments

pir_out

the output of pir_run

verbose

if TRUE, show more output

Author

Richèl J.C. Bilderbeek, Giovanni Laudanno

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

Examples

Run this code
# 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)

Run the code above in your browser using DataLab