prep_items: Function for selecting and prepping item data

View source: R/utils.R

prep_itemsR Documentation

Function for selecting and prepping item data

Description

Function for selecting and prepping item data

Usage

prep_items(test)

Arguments

test

One specific test from dbprocess::get_items()

Value

A data frame for the specific test with only items and all missing values recoded to zero.

Examples

## Not run: 
g3mth <- dbprocess::get_items(3, "Math")
items <- orextdb::db_get("Items")
prepped <- prep_items(g3mth, items)

# check that there's no missing data
any(apply(prepped, 2, function(x) any(is.na(x))))

## End(Not run)

UO-BRT/exirt documentation built on Jan. 29, 2023, 8:51 a.m.