create_cluster_index_with_existing_lookup_table: Create two columns with the indexes for the names Here we use...

Description Usage Arguments Value

View source: R/bpc_helpers_indexes.R

Description

Create two columns with the indexes for the names Here we use an existing lookup table. Should be used in predicting

Usage

1
2
3
4
5
create_cluster_index_with_existing_lookup_table(
  d,
  cluster,
  cluster_lookup_table
)

Arguments

d

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

cluster

The name of the column of data data contains player0

cluster_lookup_table

a lookup table for the cluster

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.