Learn R Programming

soc.ca (version 0.8.0)

assign.label: 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

Value

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

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.

See Also

export.label, add.to.label