get_wl_df: Converts results dataframe to win-loss dataframe

Description Usage Arguments Value Further details Examples

View source: R/get_wl_df.R

Description

Converts results dataframe to win-loss dataframe

Usage

1
get_wl_df(df, ties = "remove")

Arguments

df

A results dataframe

ties

How to handle ties, default is ties="remove" Alternative is ties="keep"

Value

A win-loss dataframe

Further details

A results dataframe first 3 variables are id1, id2, result. Results can be "W", "L", or "T" or "1", "0", "0.5". The output will be a win-loss dataframe that will reorganize the first 3 variables into winner, loser and result (=1 for Win or =0.5 for ties).

Examples

1

jalapic/compete documentation built on Nov. 22, 2017, 2:10 a.m.