Translate column names and categorical data

translate_data(df, translation_list)

Arguments

df

data to be translated

translation_list

list of names to be translated in format `list(oldname1 = "newname1", oldname2 = "newname2", ...)`