Description Usage Arguments Value Author(s) See Also Examples
View source: R/applyAttributes.R
Applies attributes stored by attributesBackup
1 | applyAttributes(x, attributesToApply = NULL)
|
x |
a data.frame or input data of class xpssFrame. |
attributesToApply |
to applied attributes |
Object with attributes from attributesBackup
Andreas Wygrabek
1 2 3 4 5 6 7 8 9 10 11 | #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)
|
$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"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.