Learn R Programming

TestDesign (version 1.0.2)

item_pool.operators: Item pool and pool cluster operators

Description

pool1 + pool2 combines two '>item_pool objects.

pool1 - pool2 excludes the items in the second item pool from the first. The two '>item_pool objects must overlap for this to be performed.

pool1 == pool2 tests equality of the two item_pool objects.

pool_cluster1 == pool_cluster2 tests equality of the two pool_cluster objects.

Usage

# S3 method for item_pool
+(pool1, pool2)

# S3 method for item_pool -(pool1, pool2)

# S3 method for item_pool ==(pool1, pool2)

# S3 method for pool_cluster ==(pool_cluster1, pool_cluster2)

Arguments

pool1

An '>item_pool object.

pool2

An '>item_pool object.

pool_cluster1

A '>pool_cluster object.

pool_cluster2

A '>pool_cluster object.

Examples

Run this code
# NOT RUN {
itempool <- itempool_science + itempool_reading

subitempool <- subsetItemPool(itempool_science, 1:500)
itempool <- itempool_science - subitempool

itempool <- subsetItemPool(itempool_science, 1:500)
subitempool1 <- itempool_science - itempool
subitempool2 <- subsetItemPool(itempool_science, 501:1000)
subitempool1 == subitempool2  ## TRUE

cluster1 <- makeItemPoolCluster(c(itempool_science, itempool_reading))
cluster2 <- makeItemPoolCluster(c(cluster1@pools[[1]], cluster1@pools[[2]]))
cluster1 == cluster2  ## TRUE

# }

Run the code above in your browser using DataLab