Learn R Programming

soc.ca (version 0.8.0)

export.label: Exports the labels of a soc.ca object into a csv file.

Description

This function allows easy translation and renaming of modalities by exporting the labels into a .csv file that is easier to work with.

Usage

export.label(object, file = FALSE, encoding = "UTF-8", overwrite = FALSE)

Arguments

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

Value

A .csv with two columns and preferably UTF-8 encoding.

Details

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.