winrate: Compute win rate from exported games
Description
Computes a win rate from the tibble returned by export_games().
Usage
winrate(games, player = NULL)
Arguments
- games
Tibble returned by export_games().
- player
Optional username to compute perspective-correct results.
If NULL, uses winner only and treats non-win as non-win.