Learn R Programming

bpcs (version 1.0.0)

create_index_predictors_with_lookup_table: Receives one column with player names and returns a data frame with the relevant index columns based on a given lookup table To be used with the predictors data frame

Description

Receives one column with player names and returns a data frame with the relevant index columns based on a given lookup table To be used with the predictors data frame

Usage

create_index_predictors_with_lookup_table(d, player, lookup_table)

Arguments

d

a data frame of the predictors

player

The name of the column of data data contains the player

lookup_table

a lookup table data frame

Value

A dataframe with the additional column 'player_index'