This function allows easy translation and renaming of modalities by exporting the labels into a .csv file that is easier to work with.
export.label(object, file = FALSE, encoding = "UTF-8", overwrite = FALSE)
is a soc.ca object
is the name and path of the exported file
is the character encoding of the exported file
decides whether to overwrite already existing files
A .csv with two columns and preferably UTF-8 encoding.
Two columns are created within the .csv: 'New label' and 'Old label'. In the 'New label' column you write the new labels. Remember to leave 'Old label' unchanged as this column is used for matching.
If you want to add frequencies to the labels with the add.to.label function you should do this after exporting and assigning labels with the assign.label function. Otherwise the matching of the labels is likely to fail.