get_wl_matrix: Converts win-loss dataframe to win-loss matrix
Description
Converts win-loss dataframe to win-loss matrix
Usage
get_wl_matrix(df, ties = "remove")
Arguments
df
A results or win-loss dataframe
ties
How to handle ties, default is ties="remove"
Alternative is ties="keep"
Value
A win-loss matrix
Further details
Input dataframes or matrices with only 2 columns are
considered to be winners in column 1 and losers in column 2.
If input dataframe has three columns, the third column
will be the result of the interaction between column 1
subject and column 2 subject. The result can be in
the "W/L/T" format or "1/0/0.5" format.
See get_wl_df: for further info.