create_cluster_index {bpcs}R Documentation

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

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

create_cluster_index(d, cluster)

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

Value

A dataframe with the additional columns 'cluster_index'


[Package bpcs version 1.0.0 Index]