Merges columns of labels. labels from each column is seperated by sep and concatenated. The resulting column of labels is stored under out_colname

merge_labels(df, col_names, new_col, sep = "_")

Arguments

df

Dataframe with multiple label columns

col_names

A string vector with column names

new_col

A new column name as a string (can be one of the old ones)

Value

The updated df