View source: R/functions_label.r
export.label | R Documentation |
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)
object |
is a soc.ca object |
file |
is the name and path of the exported file |
encoding |
is the character encoding of the exported file |
overwrite |
decides whether to overwrite already existing files |
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.
A .csv with two columns and preferably UTF-8 encoding.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.