create_index: Create two columns with the indexes for the names of the...

Description Usage Arguments Value

View source: R/bpc_helpers_indexes.R

Description

Create two columns with the indexes for the names of the players Here we create a new lookup table. Should be used when sampling the parameters

Usage

1
create_index(d, player0, player1)

Arguments

d

A data frame containing the observations. The other parameters specify the name of the columns

player0

The name of the column of data data contains player0

player1

The name of the column of data data contains player0

Value

A dataframe with the additional columns 'player0_index' and 'player1_index' that contains the indexes


bpcs documentation built on Dec. 15, 2020, 5:23 p.m.