Learn R Programming

eatATA (version 1.1.2)

depletePoolConstraint: Use complete item pool.

Description

Creates constraints that assure that every item in the item pool is used (at least) once. Essentially a wrapper around itemUsageConstraint.

Usage

depletePoolConstraint(nForms, nItems = NULL, itemIDs = NULL)

Value

A sparse matrix.

Arguments

nForms

Number of forms to be created.

nItems

Number of items in the item pool [optional to create itemIDs automatically].

itemIDs

a character vector of item IDs in correct ordering, or NULL.

Examples

Run this code
depletePoolConstraint(2, itemIDs = 1:10)

Run the code above in your browser using DataLab