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

View source: R/functions_label.r

export.labelR Documentation

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

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.

Value

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


Rsoc/soc.ca documentation built on March 7, 2024, 8:59 p.m.