The ID and label of an instrument component
Usage
sf_id(x, ...)
sf_label(x, ...)
# S3 method for class 'sf_item'
sf_id(x, ...)
# S3 method for class 'sf_choices'
sf_id(x, ...)
# S3 method for class 'sf_scale'
sf_id(x, ...)
# S3 method for class 'sf_branch'
sf_id(x, ...)
# S3 method for class 'sf_check'
sf_id(x, ...)
# S3 method for class 'sf_model'
sf_id(x, ...)
# S3 method for class 'sf_item'
sf_label(x, ...)
# S3 method for class 'sf_choices'
sf_label(x, ...)
# S3 method for class 'sf_scale'
sf_label(x, ...)
# S3 method for class 'sf_branch'
sf_label(x, ...)
# S3 method for class 'sf_check'
sf_label(x, ...)
# S3 method for class 'sf_model'
sf_label(x, ...)Arguments
- x
An
sf_item(),sf_choices(),sf_scale(),sf_branch(),sf_check()orsf_model()object.- ...
Passed to methods.
Examples
item <- sf_item("q1", "How satisfied are you?", type = "likert",
choice_set = "agree5")
sf_id(item)
#> [1] "q1"
sf_label(item)
#> [1] "How satisfied are you?"