View source: R/functions_label.r
assign.label | R Documentation |
Assigns new labels to a soc.ca object. The input labels are defined in a .csv file created by the export.label function.
assign.label(object, file = FALSE, encoding = "UTF-8", sep = ",")
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 |
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.
a soc.ca object with altered labels in object$names.mod
, object$names.ind
and
object$names.sup
export.label, add.to.label
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.