assign.label: Assign new labels

View source: R/functions_label.r

assign.labelR Documentation

Assign new labels

Description

Assigns new labels to a soc.ca object. The input labels are defined in a .csv file created by the export.label function.

Usage

assign.label(object, file = FALSE, encoding = "UTF-8", sep = ",")

Arguments

object

is a soc.ca object

file

is the path of the .csv file with the new labels. The file is preferably created by the export.label function

encoding

is the encoding of the imported file

sep

is the seperator used to create the imported .csv file

Details

To use this function first export the labels from your soc.mca analysis with the export.label function. Then open and edit the created file with your favorite spreadsheet editor, like LibreOffice Calc. Change labels in the "new.label" column to the desired values and save. Use the assign.label function but remember to assign the results into a new object or overwrite the existing object.

Value

a soc.ca object with altered labels in object$names.mod, object$names.ind and object$names.sup

See Also

export.label, add.to.label


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