Learn R Programming

translateSPSS2R (version 1.0.0)

xpssFlip: Flips variables

Description

R Implementation of the SPSS FLIP Function.

Usage

xpssFlip(x, variables = "all", names = 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 variables to flip
names
atomic character with the name of the variable for coloumn names.

Value

A flipped, respectively transposed xpssFrame object.

See Also

t

Examples

Run this code
data(fromXPSS)
xpssFlip(x=fromXPSS,variables=c("V4","V5","V6"),names="V1")

Run the code above in your browser using DataLab