Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/attributesBackup.R
Attribut backup function
1 |
x |
a (non-empty) data.frame, data.table object or input data of class |
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.
Output is a subset of the actual dataset under the condiftion of the logical expression.
Bastian Wiessner #'
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.