xpssVariableLabels: Modifies variable labels

Description Usage Arguments Value Author(s) See Also Examples

View source: R/xpssVariableLabels.R

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"))

translateSPSS2R documentation built on May 30, 2017, 4:31 a.m.