get_labels {dscore} | R Documentation |
Get labels for items
Description
The get_labels()
function obtains the item labels for a
specified set of items.
Usage
get_labels(items = NULL, trim = NULL, itemtable = NULL)
Arguments
items |
A character vector of item names to return. The
default ( |
trim |
The maximum number of characters in the label. The
default |
itemtable |
A |
Value
A named character vector with length(items)
elements with
item labels, in the same order as in items
.
See Also
builtin_itemtable()
, get_itemnames()
Examples
# get labels of first two Macarthur items
get_labels(get_itemnames(instrument = "mac", number = 1:2), trim = 40)
[Package dscore version 1.9.0 Index]