Learn R Programming

translateSPSS2R (version 1.0.0)

attributesBackup: Stores Attributes

Description

Attribut backup function

Usage

attributesBackup(x)

Arguments

x
a (non-empty) data.frame, data.table object or input data of class "xpssFrame".

Value

Output is a subset of the actual dataset under the condiftion of the logical expression.

Details

The conditions to select cases are specified in a logical expression. These logical expressions can contain relational operators, logical operators and arithmetic operations.

NOTE: For temporary case selection, specify a TEMPORARY command before SELECT IF.

See Also

attributes attr

Examples

Run this code
#load data
data(fromXPSS)
attributes(fromXPSS)
attributes(fromXPSS$V7_2)
x <- attributesBackup(fromXPSS)
fromXPSS <- fromXPSS[order(fromXPSS$V2),]
attributes(fromXPSS)
attributes(fromXPSS$V7_2)
fromXPSS <- applyAttributes(fromXPSS, x)
attributes(fromXPSS)
attributes(fromXPSS$V7_2)

Run the code above in your browser using DataLab