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

Description Usage Arguments Details Value

View source: R/functions_label.r

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

1
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.


soc.ca documentation built on Sept. 5, 2021, 5:21 p.m.

Related to export.label in soc.ca...