Skip to contents

Row-binds a sequence of tsr_behavior_profile() tibbles for side-by-side comparison. Errors on mismatched columns.

Usage

tsr_compare_profiles(...)

Arguments

...

Tibbles produced by tsr_behavior_profile().

Value

A tibble with one row per input.

Examples

# \donttest{
g1 <- tsr_play_game("greedy", "random", seed = 2L)
p1 <- tsr_behavior_profile(list(g1), side = 1L, label = "greedy")
p2 <- tsr_behavior_profile(list(g1), side = 2L, label = "random")
tsr_compare_profiles(p1, p2)
#> # A tibble: 2 × 11
#>   label   side n_games n_moves_total accuracy mean_regret blunder_rate
#>   <chr>  <int>   <int>         <int>    <dbl>       <dbl>        <dbl>
#> 1 greedy     1       1             9    0.333      0.0500        0.222
#> 2 random     2       1             8    0          0.0859        0.375
#> # ℹ 4 more variables: win_conversion <dbl>, defense_rate <dbl>,
#> #   aggression <dbl>, mean_decisiveness <dbl>
# }