i_labelled {ilabelled} | R Documentation |
class constructor
Description
class constructor
Usage
i_labelled(
x,
label = NULL,
labels = NULL,
na_values = NULL,
na_range = NULL,
scale = NULL,
annotation = NULL,
wording = NULL,
subject = NULL,
...
)
Arguments
x |
vector or data.frame |
label |
variable label |
labels |
value labels as named vector (e.g. c("A"=1, "B"=2) or setNames(c(1,2), c("A","B"))) |
na_values |
missing values (e.g. c(888, 999)) |
na_range |
range of missing values as vector length 2 (e.g. c(-9,-1)) |
scale |
scale level (nominal, ordinal, scale) |
annotation |
additional information about variable |
wording |
question text |
subject |
subject |
... |
further attributes passed to class |
Value
vector or data.frame
[Package ilabelled version 0.9.0 Index]