get_itemtable {dscore}R Documentation

Get a subset of items from the itemtable

Description

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.

Usage

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.

See Also

get_labels(), get_itemnames()

Examples

head(get_itemtable(), 3)
get_itemtable(LETTERS[1:3], "")

[Package dscore version 1.8.0 Index]