xpssVariableLabels: Modifies variable labels

Description Usage Arguments Value Author(s) See Also Examples

Description

R implementation of the SPSS VARIABLE LABEL function. Changing the label of a variable. In the structure of xpss-data the variable label is an attribute of each variable.

Usage

1
xpssVariableLabels(x, variables = NULL, labels = NULL)

Arguments

x

a (non-empty) data.frame or input data of class "xpssFrame".

variables

atomic character or character vector with the names of the variable(s).

labels

atomic character of character vector with labels for the specified variables in variables. The labels are associated in order of appearence of the variables.

Value

Input Data with modified attribute variable label.

Author(s)

Andreas Wygrabek

See Also

attributes attr xpssValueLabels

Examples

1
2
3
data(fromXPSS)

daten <- xpssVariableLabels(fromXPSS, c("V4", "V7_1"), c("Label1", "Label2"))


Search within the translateSPSS2R package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.