get_labels: Get labels for items

Description Usage Arguments Value See Also Examples

View source: R/get_labels.R

Description

The get_labels() function obtains the item labels for a specified set of items.

Usage

1
get_labels(items = NULL, trim = NULL, itemtable = NULL)

Arguments

items

A character vector of item names to return. The default (NULL) returns the labels of all items.

trim

The maximum number of characters in the label. The default trim = NULL does not trim labels.

itemtable

A data.frame set up according to the same structure as builtin_itemtable(). If not specified, the builtin_itemtable is used.

Value

A named character vector with item labels.

See Also

builtin_itemtable(), get_itemnames()

Examples

1
2
# get labels of first two Macarthur items
get_labels(get_itemnames(instrument = "mac", number = 1:2), trim = 40)

dscore documentation built on Nov. 29, 2020, 1:07 a.m.