Transforms a character column into indicator columns
Usage
character_to_indicator(in_data, in_unique_identifier, in_variable, in_prefix)
Arguments
- in_data
The dataframe with the character column
- in_unique_identifier
Unique identifiers of the dataframe. This can except a vector.
- in_variable
Character column in the dataframe that needs to be transformed
- in_prefix
Prefix of the new indicator columns created
Value
Dataframe with unique identifier(s) and indicator columns