Learn R Programming

bpcs (version 1.0.0)

match_cluster_names_to_cluster_lookup_table: Receives a column with cluster names and returns a data frame with the relevant index column based on a given cluster lookup table

Description

Receives a column with cluster names and returns a data frame with the relevant index column based on a given cluster lookup table

Usage

match_cluster_names_to_cluster_lookup_table(d, cluster, cluster_lookup_table)

Arguments

d

a data frame

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 'cluster_index' that contains the indexes