Learn R Programming

irt (version 0.1.1)

$,Testlet-method: Access slots of a Testlet-class object

Description

Access slots of a Testlet-class object

Usage

# S4 method for Testlet
$(x, name)

Arguments

x

A Testlet-class object from which to extract element(s) or in which to replace element(s).

name

Name of the parameter. Available values:

'id'

Get the id of the testlet

'content'

Get the content of the testlet.

'model'

Get the model of the testlet.

'item_models'

Get the model of the items within the testlet.

'parameters'

Get the parameters of the testlet.

'se_parameters'

Get the se_parameters of the testlets.

'item_list'

Get the list of Item-class objects of the testlet. Returns a list.

Value

This operation will return the desired slot.

Examples

Run this code
# NOT RUN {
t1 <- testlet(generate_ip(n = 3), id = "my-testlet", content = "Algebra")
t1$model
t1$id
t1$item_list
t1$content
t1$item_models
# }

Run the code above in your browser using DataLab