applyAttributes: Apply stored attributes

Description Usage Arguments Value Author(s) See Also Examples

View source: R/applyAttributes.R

Description

Applies attributes stored by attributesBackup

Usage

1
applyAttributes(x, attributesToApply = NULL)

Arguments

x

a data.frame or input data of class xpssFrame.

attributesToApply

to applied attributes

Value

Object with attributes from attributesBackup

Author(s)

Andreas Wygrabek

See Also

attributes attr

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11

Example output

$names
 [1] "V1"     "V2"     "V3"     "V4"     "V5"     "V5_kl2" "V6"     "V6_kl3"
 [9] "V7_1"   "V7_2"  

$codepage
[1] 65001

$row.names
 [1]  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20

$FILTER
[1] FALSE

$TEMPORARY
[1] FALSE

$SPLIT_FILE
[1] FALSE

$DO_IF
[1] FALSE

$SELECT_IF
[1] FALSE

$WEIGHTS
[1] "none"

$class
[1] "xpssFrame"  "data.frame"

$defined.MIS
[1]  -9 -99

$MIS
     POS VAL
[1,]   3  -9
[2,]   8  -9
[3,]  16 -99

$varname
[1] "V7_2"

$variable.label
[1] "Weight"

$names
 [1] "V1"     "V2"     "V3"     "V4"     "V5"     "V5_kl2" "V6"     "V6_kl3"
 [9] "V7_1"   "V7_2"  

$codepage
[1] 65001

$FILTER
[1] FALSE

$TEMPORARY
[1] FALSE

$SPLIT_FILE
[1] FALSE

$DO_IF
[1] FALSE

$SELECT_IF
[1] FALSE

$WEIGHTS
[1] "none"

$row.names
 [1]  5  2  1 10 15 14 19 11  9 20  4  3  8 16 18 12  7 13  6 17

$class
[1] "xpssFrame"  "data.frame"

NULL
$names
 [1] "V1"     "V2"     "V3"     "V4"     "V5"     "V5_kl2" "V6"     "V6_kl3"
 [9] "V7_1"   "V7_2"  

$codepage
[1] 65001

$row.names
 [1] "5"  "2"  "1"  "10" "15" "14" "19" "11" "9"  "20" "4"  "3"  "8"  "16" "18"
[16] "12" "7"  "13" "6"  "17"

$FILTER
[1] FALSE

$TEMPORARY
[1] FALSE

$SPLIT_FILE
[1] FALSE

$DO_IF
[1] FALSE

$SELECT_IF
[1] FALSE

$WEIGHTS
[1] "none"

$class
[1] "xpssFrame"  "data.frame"

$defined.MIS
[1]  -9 -99

$MIS
     POS VAL
[1,]   3  -9
[2,]   8  -9
[3,]  16 -99

$varname
[1] "V7_2"

$variable.label
[1] "Weight"

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