The builtin_itemtable object in the dscore package contains basic meta-information about items: a name, the equate group, and the item label. The get_itemtable() function returns a subset of items in the itemtable.

get_itemtable(items = NULL, itemtable = NULL, decompose = FALSE)

Arguments

items

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

itemtable

A data.frame set up according to the same structure as builtin_itemtable(). If not specified, the builtin_itemtable is used. If itemtable = "", then a dynamic item table is created from any specified item names.

decompose

If TRUE, the function adds four columns: instrument, domain, mode and number.

Value

A data.frame with seven columns.

Examples

head(get_itemtable(), 3)
#>        item equate
#> 1 aqiNAc005   FM97
#> 2 aqicmc001   <NA>
#> 3 aqicmc002   <NA>
#>                                                                                                                                         label
#> 1 Does your baby pick up a crumb or Cheerio with the tips of his thumb and a finger? He may rest his arm or hand on the table while doing it.
#> 2                                                                                   Does your baby sometimes make throaty or gurgling sounds?
#> 3                                                    After you have been out of sight, does your baby smile or get excited when she sees you?
get_itemtable(LETTERS[1:3], "")
#>   item equate       label
#> 1    A   <NA> Label for A
#> 2    B   <NA> Label for B
#> 3    C   <NA> Label for C