Description Usage Arguments Value Further details Examples
View source: R/get_wl_matrix.R
Converts win-loss dataframe to win-loss matrix
1 | get_wl_matrix(df, ties = "remove")
|
df |
A results or win-loss dataframe |
ties |
How to handle ties, default is |
A win-loss matrix
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.
1 2 3 4 | get_wl_matrix(randomtourney(8))
get_wl_matrix(randomtourney(15,pties=.15))
get_wl_matrix(randomtourney(15,pties=.15),ties="keep")
get_wl_matrix(el)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.