Add a new column with the top three priorities
Usage
add_top3(df, new_var, vars_unite)
Arguments
- df
input dataframe
- new_var
name of the new column
- vars_unite
vector with column names corresponding to top 1/2/3 priority to combine in unordered top three priorities
Value
dataframe with new column