replace_parameter_index_with_names {bpcs}R Documentation

Replace the name of the parameter from index to name using a lookup_table Receives a data frame and returns a dataframe.

Description

Replace the name of the parameter from index to name using a lookup_table Receives a data frame and returns a dataframe.

Usage

replace_parameter_index_with_names(
  d,
  column,
  par,
  lookup_table,
  cluster_lookup_table = NULL,
  predictors_lookup_table = NULL
)

Arguments

d

dataframe

column

name of the colum

par

name of the parameter

lookup_table

lookup table of the players

cluster_lookup_table

a lookup table of the predictors

predictors_lookup_table

a lookup table for the predictors

Value

a data. frame where we change the names in the variable colum to the corresponding parameter_name from the lookup table


[Package bpcs version 1.0.0 Index]