get_wl_matrix: Converts win-loss dataframe to win-loss matrix

Description Usage Arguments Value Further details Examples

View source: R/get_wl_matrix.R

Description

Converts win-loss dataframe to win-loss matrix

Usage

1
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.

Examples

1
2
3
4

jalapic/compete documentation built on Feb. 23, 2020, 5:33 p.m.