Takes a design or list of designs and prints them to the console. To store a
design, please see save_design
. Depending on the print options,
additional text is provided with information on the considered rule and/or
the design generation process.
print_design(design, print_all = FALSE)
design | A matrix with rows equal to the number of rules and columns equal to the number of actions |
---|---|
print_all | If TRUE prints information on the number of iterations and and whether all design conditions were met. Default is FALSE |
design_opt_input <- list(rules = 4, actions = 5) design <- generate_designs(design_opt_input) print_design(design)#> The rules-action matrix #> #> Rows: Rules #> Columns: Actions #> #> A1 A2 A3 A4 A5 #> R1 0 -1 -1 -1 0 #> R2 0 -1 -1 -1 -1 #> R3 0 0 0 -1 -1 #> R4 0 -1 0 0 0 #> #> The considered rule is 1. #> #>print_design(design, TRUE)#> The rules-action matrix #> #> Rows: Rules #> Columns: Actions #> #> A1 A2 A3 A4 A5 #> R1 0 -1 -1 -1 0 #> R2 0 -1 -1 -1 -1 #> R3 0 0 0 -1 -1 #> R4 0 -1 0 0 0 #> #> The considered rule is 1. #> #> The design was found in 4 iterations. #> #> All the design conditions were met: TRUE #>