This function identifies binary variables within a given dataframe and generates a mapping table.
The mapping table includes the variable name, its associated label, and the positive value.
Usage
createBinaryMapping(Data, CatVars)
Arguments
- Data
A dataframe containing the data to analyze.
- CatVars
A character vector of column names representing categorical variables in the dataframe.
Value
A dataframe with columns: VariableName
, Label
, and PositiveValue
for binary variables found in CatVars
.